Posts: 48
Joined: Feb 2011
Reputation:
0
Now that I can't send a keypress is there any way to activate the epg view from json?
Was using: GET /xbmcCmds/xbmcHttp?command=SendKey(0xF045) which behind the scenes does: XBMC.ActivateWindowAndFocus(MyPVR, 31,0, 10,0)
How would I do this from a json command, and ideally then set another command so I can return to full screen whatever is currently playing.
It looks like I should be using GUI.ActivateWindow, but can't find anything more so any help would be appreciated.
Posts: 48
Joined: Feb 2011
Reputation:
0
Thanks Montellese for such a quick response,
I'm getting the following error back:
{"error":{"code":-32602,"data":{"method":"GUI.ActivateWindow","stack":{"message":"array element at index 0 does not match","name":"parameters","property":{"message":"Invalid type integer received","type":"string"},"type":"array"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
Which is king of suggesting the array elements aren't OK. Am I close here, or is this really unsupported and I'm going to have to wait till post frodo?
Posts: 3,077
Joined: Jun 2009
(2012-12-03, 10:52)Montellese Wrote: I don't develop any client but what I don't like about this approach is that it probably results in a flickering of the keyboard being presented because it's most likely hidden when the OnInputFinished is received and then immediatelly shown again when the OnInputRequested is received. An idea would be to use this behaviour but to add an additional parameter to the notifications letting clients know whether the input is a virtual keyboard dialog (in which case the user of the client will most likely want to see the keyboard on the client as well) or not (in which case the user might not want to see the keyboard on the client as he may just be navigating around and had to go through an edit control).
Another approach might be to not send an OnInputRequested/OnInputFinished notification when going from an edit control to the virtual keyboard dialog. That way the client will be able to show the virtual keyboard from the moment the edit control is focused, throughout the time where the virtual keyboard dialog is opened and closed until the user leaves the edit control. The problem with this approach is, is that the "done" parameter of Input.SendText becomes a bit unintuitive as focus will still be on the edit control.
This is the moment I choose to discretely ask again for a new flag in Application.Property.Value to get the status
Posts: 3,077
Joined: Jun 2009
To know if there's a input request occurring (I.E. if we should send key presses or keymap commands) for case when we don't get the notification.
Posts: 48
Joined: Feb 2011
Reputation:
0
That's more or less working, it's not properly using the values in the array, it's going to the last PVR view, but it's close enough and works.
One last question (for now) is there any way to switch profiles with json. I've been searching and can't see anything that would work.
Posts: 183
Joined: Apr 2012
Reputation:
10
Ok, i maked some more tests and will try to explain in my bad english, i am sorry for that.
- Situation 1 : if i am in the window HOME (xbmc) and tried to set the playcount to 0 or 1 (using my app for ipad), take between 7 or 10 seconds and i lose all the streamdetails for the movie.
- Situation 2: if i am in the window MOVIE(xbmc) and tried to set the playcount to 0 or 1 (using my app for ipad), take between 2 or 3 seconds and i dont lose the streamdetails for the movie.
- Situation 3: after lose the streamdetails in situation 1, i cant get the streamdetails for this movie anymore if i am in the window HOME, but if i go to the window MOVIE and maked another request i get all the streamdetails again.
I dont know if i explain right, i am sorry for that.
Clayton
Posts: 5,184
Joined: Jan 2009
Reputation:
131
Are you playing a movie while doing this? And how are you retrieving the streamdetails? Through VideoLibrary.GetMovies or VideoLibrary.GetMovieDetails?
Always read the
online manual (wiki),
FAQ (wiki) and search the forum before posting.
Do not e-mail Team Kodi members directly asking for support. Read/follow the
forum rules (wiki).
Please read the pages on
troubleshooting (wiki) and
bug reporting (wiki) before reporting issues.