2014-12-29, 22:10
Dear Montelesse and others working on the JSON-RPC API,
I'm trying to extend my plugin (p2p-streams) to be called from the LiveTV section of Kodi via the IPTV Simple PVR addon. To do so, I'm building a service addon (http-server in python) that comunicates with the plugin core and returns a http redirection response to the stream created on the localhost (after pre-buffering).This pre-buffering stage can take a while, and normally finishes after the http timeout was reached. To overcome this problem, I'm starting a thread right after the start of the prebuffering to get the pvr channel lD I'm trying to play and to launch it again via JSONRPC (the server if a local stream exists, returns the address of the playable local stream).
So basically I'm running this command (example for channelid 1) after the pre-buffering stage:
When running the command above, kodi seems to ignore completely the window I'm on, starting the video always in fullscreen. Example, starting the channel from the MyPVRChannels.xml like below:
And calling the json player.open, the channel is played in fullscreen:
When IMHO the playback should have started windowed:
So my questions are:
-Is this the desired/designed behaviour?
-Is there any parameter to force windowed mode for videos?
-If not, is it possible to be implemented or is it a huge ammount of work for such a small increase in functionality?
I am running Helix 15.0 Alpha btw.
Thanks for your work in the jsonrpc api,
Cheers
I'm trying to extend my plugin (p2p-streams) to be called from the LiveTV section of Kodi via the IPTV Simple PVR addon. To do so, I'm building a service addon (http-server in python) that comunicates with the plugin core and returns a http redirection response to the stream created on the localhost (after pre-buffering).This pre-buffering stage can take a while, and normally finishes after the http timeout was reached. To overcome this problem, I'm starting a thread right after the start of the prebuffering to get the pvr channel lD I'm trying to play and to launch it again via JSONRPC (the server if a local stream exists, returns the address of the playable local stream).
So basically I'm running this command (example for channelid 1) after the pre-buffering stage:
Code:
{"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"channelid":1}}}
When running the command above, kodi seems to ignore completely the window I'm on, starting the video always in fullscreen. Example, starting the channel from the MyPVRChannels.xml like below:
And calling the json player.open, the channel is played in fullscreen:
When IMHO the playback should have started windowed:
So my questions are:
-Is this the desired/designed behaviour?
-Is there any parameter to force windowed mode for videos?
-If not, is it possible to be implemented or is it a huge ammount of work for such a small increase in functionality?
I am running Helix 15.0 Alpha btw.
Thanks for your work in the jsonrpc api,
Cheers