Make sure video plays onNewStream
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
025ac46101
commit
ec824c714a
|
@ -89,6 +89,7 @@ export default class VideoFeed extends React.Component<IProps, IState> {
|
||||||
this.setState({ audioOnly: this.props.feed.isAudioOnly()});
|
this.setState({ audioOnly: this.props.feed.isAudioOnly()});
|
||||||
if (!this.vid.current) return;
|
if (!this.vid.current) return;
|
||||||
this.vid.current.srcObject = newStream;
|
this.vid.current.srcObject = newStream;
|
||||||
|
this.vid.current.play();
|
||||||
}
|
}
|
||||||
|
|
||||||
onResize = (e) => {
|
onResize = (e) => {
|
||||||
|
|
Loading…
Reference in New Issue