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

Turning off a background video with a button click...?

New Here ,
Jan 29, 2018 Jan 29, 2018

Copy link to clipboard

Copied

Hi, 

I have a background mp4 video playing in the background on the using this code:

<video width="1448" height="760" autoplay loop>
  <source src="assets/demobackground.mp4" type="video/mp4">
</video>


It is set to autoplay. how do I have a click button that stops the video playing and hides it from sight?

Anyonr know how?

Thanks..

Views

149

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

correct answers 1 Correct answer

LEGEND , Jan 30, 2018 Jan 30, 2018

The default options should display playback controls when hovering over the video. If they are obstructed by other content on top you may need to replicate them in another place as a form and link them with script code.

Mylenium

Votes

Translate

Translate
LEGEND ,
Jan 30, 2018 Jan 30, 2018

Copy link to clipboard

Copied

LATEST

The default options should display playback controls when hovering over the video. If they are obstructed by other content on top you may need to replicate them in another place as a form and link them with script code.

Mylenium

Votes

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