Make sure video plays onNewStream

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-03-17 16:09:58 +01:00
parent 025ac46101
commit ec824c714a
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -89,6 +89,7 @@ export default class VideoFeed extends React.Component<IProps, IState> {
this.setState({ audioOnly: this.props.feed.isAudioOnly()});
if (!this.vid.current) return;
this.vid.current.srcObject = newStream;
this.vid.current.play();
}
onResize = (e) => {