-
Notifications
You must be signed in to change notification settings - Fork 237
Open
Description
If a media source doesn't have any sound, that should be detectable and communicated to the user.
You can use the media .audioTracks property to check whether there are audio tracks. If there are none, the video can be assumed to be silent.
You can use the Web Audio API to check for silence; but the processing is probably excessive. Might be better to add a flag for the user to declare that a video is silent.
if (videoElement.audioTracks && videoElement.audioTracks.length > 0) { return true; }
Reactions are currently unavailable