googlearchive / vrview

Library for embedding immersive media into traditional websites.
http://developers.google.com/cardboard/vrview
Apache License 2.0
1.71k stars 1.09k forks source link

Adds support to set "mute" attribute by default. #183

Closed andrebonon closed 7 years ago

andrebonon commented 7 years ago

Today there is no way to mute videos by default. To do that a workaround is needed to set the volume to "0" on the "ready" event. It causes some unwanted noises if the browser performance is not good.

If this pull request is accepted, developers can set the video to be muted by default. Besides, I changed the volume icon to mute/unmute the video and added a volume range on the user interface to control the volume level.

This feature will be very useful to me in particular and hope this can help others too.