mirror of https://github.com/vector-im/riot-web
Add missing null guard
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
657896c0b9
commit
a03b48d5a4
|
@ -74,6 +74,7 @@ export default class AudioFeed extends React.Component<IProps, IState> {
|
|||
|
||||
private playMedia() {
|
||||
const element = this.element.current;
|
||||
if (!element) return;
|
||||
this.onAudioOutputChanged(MediaDeviceHandler.getAudioOutput());
|
||||
element.muted = false;
|
||||
element.srcObject = this.props.feed.stream;
|
||||
|
|
Loading…
Reference in New Issue