Jump to content
  • 0

Starting unmute


Amir Hazan
 Share

Question

Hello

 

For start playing unmute content i just need to comment this lines (from play.html): 

        <!-- Mute/Unmute Video Button-->

<button onclick="changeVideoMuteStatus()" id="unmuteButton" title="Mute/Unmute Video">

                Unmute

        </button> 

 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

1 answer to this question

Recommended Posts

  • 0

Hi Amir,

Hope you are fine.

This is a default behavior of the browser. If auto play is enabled, audio is muted.

You can make it unmute by changing in the play.html file

https://github.com/ant-media/StreamApp/blob/master/src/main/webapp/play.html#L120

You can find the play.html file in /usr/local/antmedia/webapps/your-application/play.html

This is about browser policy. It may not start auto play in some cases if video has audio and you may need to manual interaction to play the video.

For further information, take a look at this blog post

https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

 

Regards,

Yash

Link to comment
Share on other sites

 Share

×
×
  • Create New...