0

using event handler during video playback

Hello,

I have a script in wich I would like to use the event handler to commute GPIO during video playback. example: 10 sec after video start : set gpio 1 on. or after 120 sec set gpio 0 to off.

How do I combine event handler and interactive video presentation ?

Thanks for your help.

Pierre

2 comments

  • 0
    Avatar
    Lyndon

     

    You don't need the event handler to do that. You can add video timecode events to a video. Timecode events let you specific at x milliseconds I want to send a command. So, you can add a timecode event at 5000 ms, and then add a command like gpio 2 on. You can then at 10000 milliseconds, add a different command for gpio 2 off. You can send multiple commands at each time code.

  • 0
    Avatar
    Pierre Vesters

    Thank you  for your help. Indeed it seems to be ok.

    It's an interactive program with 25 different video. It is not possible to copy the timecode events to all.

    Wil it also work with event handler on a second layer ?  

    If not, i will rewrite the timecode to all video.

    Many thanks

    Pierre

Please sign in to leave a comment.