-
-
Save harshalkaigaonkar/172e39c0b79205e5be134111524454d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const onCanPlay = () => { | |
const audio : HTMLMediaElement | HTMLElement | any = document.getElementById('audio'); | |
const stream = audio.captureStream() | |
console.log(stream) | |
} | |
return ( | |
<div> | |
<video crossOrigin='anonymous' controls id="audio" loop src='https://aac.saavncdn.com/871/c2febd353f3a076a406fa37510f31f9f_320.mp4' onCanPlay={onCanPlay}> | |
Your browser does not support the audio tag. | |
</video> | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment