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

Fix mute function in FF and Safari #199

Closed andrebonon closed 7 years ago

andrebonon commented 7 years ago

Hi Guys,

video.setAttribute('muted', 'true'); doesn't work well on Firefox and Safari. So instead to setAttribute(), I changed to set the property directly by video.muted = true;.

I tested on Chrome 59, Firefox 54, IE Edge, Safari (iPad and iMac) and it is working as expected.