Skip to main content
Participant
April 26, 2021
Question

Can I stop a Scene7 or Dynamic Media Classic video from a button on my web page?

  • April 26, 2021
  • 0 replies
  • 132 views

Hello!

 

I need to be able to stop playback of a video hosted in Scene 7 from a click on my web page.  Basically, the video opens in a modal window on this web page.  If the user starts the video and then closes the modal (which basically sets `display: none;` on the modal), the video continues to play even though it is invisible.  As you can imagine that is kind of a strange user experience.  I'd like to be able to stop the playback when the user clicks the button that closes the modal.

 

Is there any way I can do this?  I guess I could do something like remove the video frame from the DOM altogether, but then I need to add it back if it's missing and I might run the risk of a condition where the modal loads without the video.  It seems cleaner to just send a stop command to the video.

 

Thanks!

 

Jeremy

This topic has been closed for replies.