Forum Discussion

MadihaS's avatar
MadihaS
Community Member
15 days ago

Question about video controls

Hi I've uploaded videos to my storyline course (storyline x64) and have set them to play when triggered. I want to have a play button in the middle of the screen as the trigger to make it obvious. I've set this to hide when clicked but I also want the learner to be able to see how long the video is and use the pause capability so I've activated the video controls. The problem I'm having is that if the learner uses the built in control to play the video, the trigger I've added stays in the middle of the screen. Is there a way to address this? I've attached how I've got this set up. 

4 Replies

  • The easiest thing to do is to cover the entire screen with a hotspot. Make the hotspot the thing that the user clicks on to play the video, and when the user clicks the hotspot, change the state of the play button to hidden. Screenshot below!: 

     

    • MadihaS's avatar
      MadihaS
      Community Member

      Oh that's a great idea. Thanks!!

  • Nedim's avatar
    Nedim
    Community Member

    It’s difficult to achieve this using triggers alone. Storyline doesn’t provide a built-in way to detect whether the video is playing or paused, or if the built-in play/pause button has been clicked. While you can control media playback with triggers (play, pause, or stop), you can't trigger other actions based on the video's state.

    To detect whether the video is playing or paused, you'll need to use JavaScript. In the example below, a custom play/pause button is synchronized with the built-in video controls, allowing them to react to each other.

    If you prefer to avoid using JavaScript, I highly recommend Elizabeth’s solution instead.

    • MadihaS's avatar
      MadihaS
      Community Member

      Very interesting. Thanks for sharing Nadim. I think for now the simpler solution will work but I'll keep this option in mind. Thank you.