Add missing null guard

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-07-07 11:11:00 +02:00
parent 657896c0b9
commit a03b48d5a4
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -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;