Can you "pause" slide-layers based on the base-layer?

Aug 01, 2013

I have one slide that contains a video as the base-layer and there are 4 slide-layers on the slide also. The slide-layers will be displayed at different times based upon the video base-layer timeline. There are no player controls being used. On the video base-layer there is a pause-button and a play-button I have placed.

When I pause the video on the base-layer the slide-layers continue to play. Is there a way to pause the slide-layers when I pause the video on the base-layer?

7 Replies
blair parkin

Hi Ray

This seems to work for me:

On the base layer have your Puase and Play buttons. Add a second trigger to the Pause button to show a layer. Set the layer up to pause the timeline of the base layer (in slide layer properties). On the new layer add a second Play button with an extra trigger to hide the layer when clicked.

Hope this helps

Blair

Ray Mooney

Thank you!!!    ..... this is good!!  Stopping the timeline does shut-down the slide-layers from playing on their own.

There is one additional thing I would like to like to see if I can get done on the last step and can't seem to figure it out.

At the time the new layer that paused the timeline is hidden I would like to AUTOMATICALLY start the media (video) without the user having to click the play button.

If I do this the Learner does not have to click play to restart the video. Everything can just play in a seamless manner without having to press any buttons.

With the media of the base layer being a video, I wish there was a slide-layer trigger that would let you play media (and you could select your video)!  I could play the video when the timeline ends.

Safurah Abdul Jalil

My current workaround is to use a Boolean (TRUE/FALSE) variable. Sharing it here in case it's helpful for anyone else in similar situation:

I first created a new variable that I name 'isPlayVideo', with the Type: True/False. I had the Default Value set to 'True' as I want the video on my base layer to automatically play upon entering the slide.

(I have a video called 'Video1' on my base layer, and a button on a layer called 'Layer1')

I then created new slide triggers on the base layer that will 'Play media' - specifically Video1 on my base layer- when the isPlayVideo variable changes (is equal) to True; and 'Pause media' when the isPlayVideo variable changes to False.

Next, I created triggers on my video; i.e. a 'Set isPlayVideo equal to False' and a 'Show layer' trigger when user clicks on Video1 on the Base Layer. This sets the 'isPlayVideo' variable to 'False' when the new layer is shown, and thus automatically pauses the video on the base layer. 

Finally, on a button in my new layer ('Layer 1'), I created the 'Hide layer' and 'Set isPlayVideo equal to True' triggers. So when users click on the button, the layer will be hidden and the media/video on the base layer will automatically resume playing.

Hope this helps. Do share if you have other ideas/workarounds... or if a slide-trigger feature that I am unaware of is now available!

Safurah Abdul Jalil

@Walt Hamilton - Hmmm that didn't quite work for me the first time around. The video on the base layer did pause when a layer is shown - no problems there - but when the layer is hidden, the video on the base layer does not resume playing. Users will have to click on the play button for it to play. Having said that, I will try again just in case...

EDIT: I've tried it again and the video still won't resume/play automatically when the layer is hidden... (similar to what is highlighted by @Ray Mooney earlier in this thread). I've tried both ways - to pause video when the layer is shown (as I did the first time and did not work), then to just pause the base timeline as you suggested ... also didn't work.

Please let me know if I missed anything and how you get yours to work?

Walt Hamilton

There might be a problem if the user has to click a button to start the video, or if there are video controls involved; I don't know how all those things work together. I do know that the forum is full of people who have troubles with player controls and seekbars. I think best practice is to give the user whatever instructions you need to, then when they click to play the video jump to the next slide that has the video. If the video starts when the slide starts, the slide timeline, controls, and seekbar all become by default the controls for the video, and everything works much easier.

See the attached sample.

 

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