Compare commits
2 commits
05855361cb
...
c07ddbe7b1
Author | SHA1 | Date | |
---|---|---|---|
c07ddbe7b1 | |||
|
7840c6b75b |
1 changed files with 4 additions and 0 deletions
|
@ -469,6 +469,10 @@ class Video extends PureComponent {
|
|||
};
|
||||
|
||||
_syncVideoToVolumeState = (volume = null, muted = null) => {
|
||||
if (!this.video) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.video.volume = volume ?? this.state.volume;
|
||||
this.video.muted = muted ?? this.state.muted;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue