Script and Player : catch event
#1
Hi,

when playing a movie or tv stream from a custom python script with xbmc.Player(), I would like to be able to catch some keyboard events ?
The pb is that the python script seems to be under the Player, and can't handle any event.
How can I proceed ?

I would like to play the next/prev item of my movie list (constructed with a WindowXML GUI), or to play a specific item when pressing some particular keyboard keys, and when already playing a file. In fact like using a TV remote (zapping with direct channel acces by their number, even if a channel is already playing)

Thanks in advance.
Reply
#2
make your window class a dialog
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
xbmcgui.WindowDialog or a xbmcgui.WindowXMLDialog ?
Reply
#4
I tried with a xbmcgui.WindowXMLDialog and the problem is that the video is now hidden under my dialog.
I fact I would like to view the video in fullscreen mode and the script to be able to handle some keycode.
Reply
#5
i use this in TWC script.

<visible>!VideoPlayer.IsFullscreen</visible>
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#6
!!!!! Thanks a lot !!!!!
Reply

Logout Mark Read Team Forum Stats Members Help
Script and Player : catch event0