Make sure video plays onNewStream

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-03-17 16:10:50 +01:00
parent 8410411236
commit 6c5a301094
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 0 deletions

View File

@ -117,6 +117,7 @@ export default class VideoFeed extends React.Component<IProps, IState> {
this.setState({ audioOnly: this.props.feed.isAudioOnly()}); this.setState({ audioOnly: this.props.feed.isAudioOnly()});
const currentMedia = this.getCurrentMedia(); const currentMedia = this.getCurrentMedia();
currentMedia.srcObject = newStream; currentMedia.srcObject = newStream;
currentMedia.play();
} }
onResize = (e) => { onResize = (e) => {