2014-09-02, 23:45
Can't -1 just stop all active players to force the normal player logic in XBMC core and not have to duplicate it ?
(2014-10-07, 19:58)Tolriq Wrote: Finally tested earlier since had to test other thingsThanks for taking the time to do extensive tests.
So the patch does work. As expected when using play with in XBMC next starts from JSON will continue on target UPnP player.
Adding "options":{"playercoreid" :"default"} will most of the time stop the UPnP rendering and start the media locally as expected.
(2014-10-07, 19:58)Tolriq Wrote: 85% of the time UPnP renderer stops and media start locally, but 15% both plays. (Same with GUI) I could even reproduce it some times when using Play with to my TV with some unsupported media they then started locally without stopping on TV.Hm I only tried 15 to 20 times and it always worked. This sounds more like an issue in the UPnP controller than with JSON-RPC. Especially the error handling which results in automatic local playback is IMO a bit questional in general.
(2014-10-07, 19:58)Tolriq Wrote: Another strange detail but when in GUI file mode, I chose Play with on file named toto.mp4 of 7 min duration to my TV, then the mini controller shows another file name from the same directory but with correct lenght and not the one of the other mediaThis is unrelated to JSON-RPC right? You tried to play a file from XBMC GUI and it didn't behave as expected?
(2014-10-07, 19:58)Tolriq Wrote: And second since I never took time to really test, but when playing on remote UPnP :I'll try to look into this. Looks like this problem also existed before the Player.Open addition.
Player.GetActivePlayers returns [] meaning no active players.
So it seems remotes have no way to know if something is playing and for example to stop it unless using Event Server stop remote code.
(2014-10-07, 19:58)Tolriq Wrote: And third. When having XBMC targeting my TV with something playing, using Player.Open without any playercoreid try to start the media on the TV but if the media is not supported the start fails but JSON returns me a OK message.Yeah the problem is that playback is started asynchronously to the request so all the "OK" response means is that JSON-RPC was able to find the item you would like to play and has passed it on to the playback logic. This also happens when you try to play a file that exists but is not supported by DVDPlayer or PAPlayer.
So linked with previous no active players I have no way to know if media starts or not.
(2014-10-08, 09:49)Montellese Wrote:(2014-10-07, 19:58)Tolriq Wrote: 85% of the time UPnP renderer stops and media start locally, but 15% both plays. (Same with GUI) I could even reproduce it some times when using Play with to my TV with some unsupported media they then started locally without stopping on TV.Hm I only tried 15 to 20 times and it always worked. This sounds more like an issue in the UPnP controller than with JSON-RPC. Especially the error handling which results in automatic local playback is IMO a bit questional in general.
(2014-10-07, 19:58)Tolriq Wrote: Another strange detail but when in GUI file mode, I chose Play with on file named toto.mp4 of 7 min duration to my TV, then the mini controller shows another file name from the same directory but with correct lenght and not the one of the other mediaThis is unrelated to JSON-RPC right? You tried to play a file from XBMC GUI and it didn't behave as expected?