Stream playback in browser is automatically muted #3
-
Hi, I've noticed when creating a web app and embedding the player, I can't get the stream to auto-play audio out loud (video auto-plays fine), it always starts muted. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is a limitation with how popular web browsers behave when there is media with sound on a web page. You will observe different behavior depending on the web browser autoplay policy being used by the end-user and in particular when a user is on a mobile platform. RecommendationsWhen using the streaming hosted player on a web page (ie. Getting Started by Embedding the Streaming Viewer in an iFrame) you should:
This is typically done with query strings at the end of the <iframe src="https://viewer.millicast.com?streamId=abc123/mystreamName&autoPlay=true&muted=false" allowfullscreen width="640" height="480">
</iframe> This will not guarantee that the stream will begin with audio for all users, but for any user with their autoplay settings to allow audio either globally or for your application domain then it would work as expected. Browser Policies
See the Mozilla Autoplay guide for media and Web Audio APIs for a definitive source on interactions of |
Beta Was this translation helpful? Give feedback.
This is a limitation with how popular web browsers behave when there is media with sound on a web page. You will observe different behavior depending on the web browser autoplay policy being used by the end-user and in particular when a user is on a mobile platform.
Recommendations
When using the streaming hosted player on a web page (ie. Getting Started by Embedding the Streaming Viewer in an iFrame) you should:
autoPlay
to truemuted
to falseThis is typically done with query strings at the end of the
src
viewer URL such as:Th…