Kodi Community Forum

Full Version: processing onAction() while executing xbmc.Player().play()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I'm trying to capture and process user button events while I am playing a stream. It seems that once you call xbmc.Player().play(), it captures all events (such as up arrow, down arrow, etc) and routes them to the player for event processing (such as skipping around in the buffer).

I'd instead like to be able to do things when the user clicks up arrow WHILE the video continues to play.

Specifically, I am developing a system which streams (via VLC) live video from my cable box in the other room to XBMC. I need to be able to capture commands like UpArrow from the XBMC remote to send a channel up command back to my cable box while the VLC stream continues to play via XBMC.

Is this possible within the XBMC python environment? Or is there no way to prevent xbmc.Player().play() from capturing all input once a video is playing? I was thinking there might be a way to do something like create an invisible control over the player window and setfocus to that window to capture the events?

Thanks!
Ty Nerd
make your window class a windowdialog class.