Explore the community Forums Lectora Lectora Questions & Answers How to stop an embedded Vimeo video when you hide the object Reply To: How to stop an embedded Vimeo video when you hide the object

#428580 Score: 0
Profile photo of Joe Wieloch
Joe Wieloch
Moderator
beginner
intermediate
friend finder
contributor
LUC16 Attendee
verified member
wise owl
LUC17 Attendee
advanced
picture perfect
69 pts
@wheels

This is a BIG guess but hopefully it will just work!

On the first Vimeo external HTML object add these two actions:

Action -> On Page Show -> RunJavaScript

getDisplayWindow().vimeoVideo1 = %HTMLNAME%;

Action -> On Hide -> RunJavaScript

triv$('iframe', getDisplayWindow().vimeoVideo1.div)[0].contentWindow.postMessage('pause', '*');

If it doesn’t it would help if you can post an example title or publish to a public area where we can try it!

Thanks,

Joe