Home Detect if HTML5 video volume property is read-only?

# Detect if HTML5 video volume property is read-only?

Tim Gieseking
1#
Tim Gieseking Published in 2017-12-07 20:24:02Z
 I have a mute button that sets my video volume to 0: video.volume = 0;  If this isn't supported I'd like to hide the mute button. I can use user-agent detection, but that is less than ideal. Does anyone know of a way to check if this property is read-only? Thanks, Tim
Walle Cyril
2#
Walle Cyril Reply to 2017-12-07 20:27:49Z
 to mute use .muted. The old volume will be remembered and it works everywhere. video.muted = true; 
 You need to login account before you can post.
Processed in 0.314354 second(s) , Gzip On .