0

Variable to have a video autoplay once when visiting a new slide, and not again when re-visit the slide?

1297 0 1
Posted   one month ago

Hi,

I've read this article, 'Controlling uploaded video files (Video Options)' and several others about variable use, and I have not yet found a solution.

How do I use a variable to make a video autoplay only once when visiting a new slide, and not again when they re-visit the slide?

I've tried using the media completes action trigger with a variable to record it's play state, but so far I have not been able to get it to work with success. 


Thanks for your support!

 

Comments

( 0 )

Answers  ( 1 )

0
avatar Chris Van Wingerden   |    
Posted   one month ago

Like many cases with variables, there are probably a few ways to carry this out.

My approach would be to not use the Autoplay setting on the video's options, tab, and instead use a Page Loaded trigger to play the video. The Autoplay setting isn't something that can easily be affected by other actions and conditions.

So, have the video set a variable when it is completed, like you've mentioned above. Let's say the variable is "Video1" and when the video finishes it's set to true.

Set a Page is loaded trigger to play the video, but with a condition to only play it if the Video1 variable does not equal true. In the conditions field you'd add:

{{Video1}} != true  

 

Comments

( 0 )