Pausing timeline with both the player button and click on the video content.

Jun 10, 2019

Hi, 

I'm a bit stuck with this problem and I don't know if anyone else has had this same issue.

But I basically want the user to pause/resume the timeline in two ways:

  1. Clicking the player play/pause button.
  2. Clicking on the video.

I can't seem to get these two methods to work together as it seems you need some way of tracking whether the player is paused or playing (a variable) but you can't control that variable with the built-in play/pause buttons.

I've tried a few solutions but no matter what if you alternate the two play/pause methods then they eventually fall out of sync with one another and you have to click twice on a few occasions to get the required action.

Any suggestions?

12 Replies
James  Bennett

Hi Ron,

Thanks for the tip but unfortunately it's what I'm already doing.

When I say player play/pause button I mean the built-in storyline player, not the video controls so there is no way of tracking (or adjusting a variable) when it is clicked.

It's disappointing because the only workaround I can think of is to simply mask the video not be able to click/tap the video to pause/unpause.

 

Jean-Francois Whissell

Hi James, 

Did you ever end up finding a solution for this? I am trying to figure out something very similar. For accessibility reasons we have programmed an auto-play on/off for all media. For videos, users are asked to either press on the video (actually an image that acts as a button over video) or press on the player's play button to view, unless they have selected auto-play On in which case the video starts automatically. 

When testing this out however, the only way to play the video is to click on our created Play button, the play button on the player (storyline player not video controls) does not work. 

I'm hoping to get both these options available for video control! 

Hopefully you have found a solution that you can share.

Thanks :)

Leslie McKerchie

Hello Jean-Francois and welcome to E-Learning Heroes :)

Thanks for sharing what you would like to see in your project. 

I'm curious if the attached sample is similar to what you may be looking for.

I used a layer to create the initial 'pause' and after that, the built-in features of the video and slide can work together.

Joe D

Hi Leslie. Unfortunately, the example you give does not work.  If a user clicks the play button on the timeline and not the video, it immediately gets out of sync.  I'm trying to make my video play when they click the play button on the controls OR the video itself.  That does not seem possible as far as I can see, but I could be missing something.

This discussion is closed. You can start a new discussion or contact Articulate Support.