chore: add setFullScreen to component's ref (#3855)
* chore: add setFullScreen to component's ref and remove presentFullscreenPlayer & dismissFullscreenPlayer
This commit is contained in:
committed by
GitHub
parent
016fca8a2a
commit
3a4a13011a
@@ -436,11 +436,7 @@ class VideoPlayer extends Component {
|
||||
|
||||
toggleDecoration() {
|
||||
this.setState({decoration: !this.state.decoration});
|
||||
if (this.state.decoration) {
|
||||
this.video?.dismissFullscreenPlayer();
|
||||
} else {
|
||||
this.video?.presentFullscreenPlayer();
|
||||
}
|
||||
this.video?.setFullScreen(!this.state.decoration);
|
||||
}
|
||||
|
||||
toggleShowNotificationControls() {
|
||||
|
Reference in New Issue
Block a user