Answers for "react video srcObject"

0

react video srcObject

playTrack(track) {
    const stream = new MediaStream()
    stream.addTrack(track)
    this.audio.srcObject = stream;
}

render() {
    return (
        <audio ref={audio => {this.audio = audio}} controls volume="true" autoPlay />
    )
}
Posted by: Guest on June-04-2020

Code answers related to "react video srcObject"

Code answers related to "Javascript"

Browse Popular Code Answers by Language