You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Make sure video plays onNewStream
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user