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}