Catching input while playing a video
#1
hi

we achieved to get raw socket streaming with xbmc by making some modifications in mplayer source file.
now xbmc can connect to vdr tv server and works as an independent tv client. stream is done by adding vtp ( video transfert protocol from vdr-streamdev plugin ) in mplayer.

we succeed having the live stream to zap by pressing "display"  button ( to switch full screen off ) then selection a new channel and press  display button to be in fullscreen again.
while we are in this process the stream never stop.

what we'd like to do now is ability to grab remote commands like numeric and up/down buttons and send them to our python script.
the goal is to send tune command trought python to the server to change channel in the live stream while watching tv in fullscreen mode

for the moment those input are catched by mplayer only while we are in full screen mode.

is there a way to achieve this , like having a specific remote layout only for our python script ?
as far we saw for the moment, the only way we see is modifying mplayer sources to ignore basic input triggers while using our home made fd:// stream. that looks a bit tricky.


thanks
Reply
#2
i would say that you can just edit keymap.xml and call a script to handle the keystroke. in the script you can handle the keystroke's default behaviour if your script isn't working. i guess it's a bit of a workaround, but it should work.

greetz,
piscator
Reply

Logout Mark Read Team Forum Stats Members Help
Catching input while playing a video0