2013-01-31, 09:44
(2013-01-28, 19:42)ace20022 Wrote: Hi,Not sure, will have to look into it. I probably wrote the code with the assumption that there will always be an audio stream but not that there will always be a subtitle stream.
I stumbled upon the following result when querying properties from a video without an audio stream:
Code:{
"id": 1,
"jsonrpc": "2.0",
"result": {
"audiostreams": [
],
"currentaudiostream": {
"bitrate": 0,
"channels": -1,
"codec": ""
},
"currentsubtitle": {
},
"subtitleenabled": true,
"subtitles": [
]
}
The query is:Code:{"jsonrpc": "2.0", "method": "Player.GetProperties", "params":{ "properties": ["currentaudiostream", "audiostreams", "subtitleenabled", "currentsubtitle", "subtitles" ], "playerid": 1 },"id": 1}
Is there a reason that currentaudiostream is not empty? I think it is inconsistent w.r.t. currentsubtitle, for example.
(2013-01-30, 19:30)Tolriq Wrote: Ok so now that Frodo is out have you decided the final way to make the Feature Requests for Frodo and acceptation system ?Not sure I follow. You can post feature requests here in the JSON-RPC subforum as new threads where they can be discussed. For code submission/patches obvioulsy github PRs is the preferred way.
Since next release is far away I think I'll propose more patch to help going further for what I can but will still need some pointers and best practices correction at start I guess
(2013-01-31, 05:54)doozer Wrote: Frodo 12.0 stable:Yeah this works with the keyboard because of the keymappings in keyboard.xml but IMO executing the "info" action (or whatever it's called) should lead to closing the info overlay if it's already open. Have you tried the "backspace" action to close the OSD / info overlay?
Via the keyboard you can hit the 'i' key and it will toggle the playback info on screen (for example the movie name and playback position etc).
Is there a way via the JSONv6 API to do the same thing?
Sending a GUI.ActivateWindow with the param 'videoosd' displays the overlay, but there is no way to remotely cancel it. Which results in any further commands being queued until you use the keyboard/mouse directly on the XBMC machine.
Anyone managed to get this working?
Thanks,
Matt.