2012-11-26, 15:44
The window can be opened using GUI.ActivateWindow so you can give it a try.
Quote:self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":"on"},self.logReplyData);i have a function to send the json request and another function to get the log.
Quote:self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":["on",0]},self.logReplyData);to set the subtitle with index 0, i get a error.
Quote: self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":0},self.logReplyData);Dont work, the subtitle is always off. I think i will have to make another Player.GetProperties, see what subtitle index its on and put a conditional to not make the request SetSubtitle to the subtitle in use.
setTimeout(function(){self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":"on"},self.logReplyData);}, 1000);
Quote:{"playerid":1, "subtitle":0}I can see in the log, the subtitle change to index 0, the subtitle is on too, but don show.
Quote:{"playerid":1, "subtitle":"on"}Dont work too, the subtitle dont show.
(2012-11-26, 19:20)claymic Wrote: Hi,Try
I am making a new app to work with CommandFustion in a ipad. So far everything its working great, but i have a problem trying to set a subtitle.
This works fine :
Quote:self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":"on"},self.logReplyData);i have a function to send the json request and another function to get the log.
But i tried this:
Quote:self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle":["on",0]},self.logReplyData);to set the subtitle with index 0, i get a error.
Can someone help me to understand how to set a subtitle using the index ?
Very thanks.
Clayton
self.rpc("Player.SetSubtitle", {"playerid":1, "subtitle": 0, "enable": true},self.logReplyData);
Quote:setTimeout(function(){self.rpc("Player.Seek", {"playerid":1,"value":"smallbackward"}, self.logReplyData);}, 200);then the subtitle show, because that i think there is nothing i can do about.
(2012-11-26, 23:31)Tolriq Wrote: Hum you need to know that Xbmc does prefetch a lot subtitles.Yes man, this is exactly what happens here. I just insert a setTimeout
When you change subtitles thge new one won't show for a few seconds (between 4 to 10 sometimes) so perhaps your tests are ok you just don't wait enough