mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 15:42:17 +03:00
Make sure video plays onNewStream
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
8410411236
commit
6c5a301094
1 changed files with 1 additions and 0 deletions
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in a new issue