• 0
Sign in to follow this  
Followers 0

DMS 2 Mute background video


Question

Posted (edited) · Report post

Hello, 

 

Is it possible to create a mute button for the background video in DMS2? I can't figure it out... preferably with CSS, thank you.

Edited by opwolken

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted · Report post

Hi opwolken

I uploaded a video without sound on my Web, I had the same problem.

I believe that this is the only way.

:)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the reply batman,

 

Have you come to any solutions to pause/play, not-repeat or other video modules of the like?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Here's how to mute the background video. The video is played with the HTML5 video element, which has a muted attribute: http://www.w3schools.com/tags/att_video_muted.asp

 

  1. Click on </> Custom
  2. Then Custom Scripts
  3. Paste this code:
<script>
  jQuery(function(){
    jQuery(".bg-video").prop("muted", true);
  });
</script>
3 people like this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

jappareti thanks for sharing!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0