• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

New Here ,
Apr 26, 2021 Apr 26, 2021

Copy link to clipboard

Copied

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

Views

74

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation