react video srcobject

Solutions on MaxInterview for react video srcobject by the best coders in the world

showing results for - "react video srcobject"
Henry
24 Apr 2018
1playTrack(track) {
2    const stream = new MediaStream()
3    stream.addTrack(track)
4    this.audio.srcObject = stream;
5}
6
7render() {
8    return (
9        <audio ref={audio => {this.audio = audio}} controls volume="true" autoPlay />
10    )
11}