Skip to main content
Known Participant
November 6, 2020
Question

Can I use JS to change the volume of a video in the html5 video component?

  • November 6, 2020
  • 2 replies
  • 300 views

I just want to be able to load the video component at 50% volume so I don't blow the users ears out when a video plays?

 

seems like I should be able to do that easily.  I can't find documentation ANYWHERE.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Known Participant
    November 6, 2020

    ok all - here was the solution:

    setTimeout(function(){ this.diy1embed.volume=.15; }, 200);

    a 200ms delay on the volume change gave the component the time to load

    Known Participant
    November 6, 2020

    I think I am seeing the issue - I am issuing the command: this.diy1embed.volume=.25;   it works in the console but is unavailable in the movie on click or on frame - I believe its a timing issue.