You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 20, 2021. It is now read-only.
If someone were able to do it, it would definitely be wrapped into a more generic audio-volume-polyfill that could be used anywhere.
So far my code was:
// create the audio contextvarcontext=new(window.AudioContext||window.webkitAudioContext)();// create the audio elementvaraudio=document.createElement('audio');audio.src='https://rawgit.com/bower-media-samples/big-buck-bunny-480p-30s/master/video.mp4';audio.crossOrigin='anonymous'// create the volume changervargainNode=context.createGain();gainNode.gain.value=0.1;// set the volume// connect the audio element and the volume to the contextvaraudioSource=context.createMediaElementSource(audio);audioSource.connect(context.destination);gainNode.connect(context.destination);// play the audio element on user interactiondocument.body.ontouchstart=audio.play.bind(audio)
Hi @bfred-it
Setting
muted=true
does not work on the iPhone.Also unable to adjust
volume
on the video. Is this a limitation?FYI, there is an audio track in the video.
The text was updated successfully, but these errors were encountered: