0

Button Operation during video playback



Hi, I want to play a subtitled version of a video only when a button is pressed but only on the next playback loop, I don't want to interupt the current video. My ideal senario Non subtitled video playback on loop, Red LED on GPIO output on. Button is pressed (anytime) Red LED turns off and Geen LED on second GPIO turns on. On video next playback loop the subtitled version plays to end. Resets back to non subtitled video Green led off Red on.

4 comments

  • 0
    Avatar
    RokuLyndon


    You can do this with a custom script. Brightauthor doesn't allow for a button press to select the next file but only after the current file has finished playing.
  • 0
    Avatar
    markav


    Could you help with a script , I've never writen a script only adjusted premade scripts.
    I would not know where to start.
  • 0
    Avatar
    RokuLyndon


    I need a clearer description of what you need.

    DOes the non subtitled video play automatically on started? Do you care what gpios are used for input, and which are used for the leds?
    what triggers the turning on of the red led?
  • 0
    Avatar
    markav


    Hi This is what I want it to do

    From power up play non subtitled video on a loop automatically
    GPIO 1 output on to light a RED led to show subs are avaliable
    GPIO 0 input for button

    When Button pressed
    GPIO 1 output off
    GPIO 2 output on to light Green LED to show subs will play next
    At the end of the last looped non subtitled video, play the subtitled video once. No operation of button during subtitled video.

    Back to normal non subtitle playback
    GPIO 2 output off
    GPIO 1 output on
    Await next button press

    Thanks thats it.
Please sign in to leave a comment.