2013-02-12, 12:16
Hello,
I would like to play video from a remote server and using the JSON RPC.
The video could be a :
- IP live channel (RTP stream) (ex : rtp://@232.0.1.13:8200)
- a HTTP file (youtube, dailymotion...) (ex : http://a1408.g.akamai.net/5/1408/1388/20..._mpeg4.mp4)
1) I did not find any JSON RPC Method that allows me to achieve that.
Could anyone confirm me that no method exist ?
2) I tried using playlists.
I wrote 2 .m3u playlists that I copied in the .xbmc/userdata/playlists/video directory.
From the XBMC GUI, I can see them and I can launch the playing of remote video and IPTV streams.
The following JSON RPC requests are strange to me :
request =
{"jsonrpc": "2.0", "method": "Playlist.GetPlaylists", "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":[{"playlistid":0,"type":"audio"},{"playlistid":1,"type":"video"},{"playlistid":2,"type":"picture"}]}
=> where are my 2 video playlists ?
request =
{"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": [ "file" ], "playlistid": 1}, "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":0,"start":0,"total":0}}}
=> Obviously, something is wrong somewhere
request =
{"jsonrpc": "2.0", "method": "Player.Open", "params": [{ "playlistid": 1 }], "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":"OK"}
=> XBMC do not launch the playing
=> Is it possible to use .m3u playlists with JSON RPC in order to
- get the list of existing video playlist
- select one of them (getting info to identify the one to modify)
- modify the selected playlist (add or remove an item)
- launch the playing
Thank you
I would like to play video from a remote server and using the JSON RPC.
The video could be a :
- IP live channel (RTP stream) (ex : rtp://@232.0.1.13:8200)
- a HTTP file (youtube, dailymotion...) (ex : http://a1408.g.akamai.net/5/1408/1388/20..._mpeg4.mp4)
1) I did not find any JSON RPC Method that allows me to achieve that.
Could anyone confirm me that no method exist ?
2) I tried using playlists.
I wrote 2 .m3u playlists that I copied in the .xbmc/userdata/playlists/video directory.
From the XBMC GUI, I can see them and I can launch the playing of remote video and IPTV streams.
The following JSON RPC requests are strange to me :
request =
{"jsonrpc": "2.0", "method": "Playlist.GetPlaylists", "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":[{"playlistid":0,"type":"audio"},{"playlistid":1,"type":"video"},{"playlistid":2,"type":"picture"}]}
=> where are my 2 video playlists ?
request =
{"jsonrpc": "2.0", "method": "Playlist.GetItems", "params": { "properties": [ "file" ], "playlistid": 1}, "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":{"limits":{"end":0,"start":0,"total":0}}}
=> Obviously, something is wrong somewhere
request =
{"jsonrpc": "2.0", "method": "Player.Open", "params": [{ "playlistid": 1 }], "id": 1}
answer =
{"id":1,"jsonrpc":"2.0","result":"OK"}
=> XBMC do not launch the playing
=> Is it possible to use .m3u playlists with JSON RPC in order to
- get the list of existing video playlist
- select one of them (getting info to identify the one to modify)
- modify the selected playlist (add or remove an item)
- launch the playing
Thank you