Do not try to update an undefined video element (#27798)
parent
e79bf1b1e7
commit
7840c6b75b
|
@ -469,6 +469,10 @@ class Video extends PureComponent {
|
||||||
};
|
};
|
||||||
|
|
||||||
_syncVideoToVolumeState = (volume = null, muted = null) => {
|
_syncVideoToVolumeState = (volume = null, muted = null) => {
|
||||||
|
if (!this.video) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.video.volume = volume ?? this.state.volume;
|
this.video.volume = volume ?? this.state.volume;
|
||||||
this.video.muted = muted ?? this.state.muted;
|
this.video.muted = muted ?? this.state.muted;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue