Open allaboutdeepak opened 3 years ago
let try:
HTML: <div ........ (plyrPlay)="fullScreen()" ........ >
TS:
fullScreen() {
this.player.fullscreen.enter();
}
I need to play the video in fullscreen mode when the user is changing the screen orientation to landscape mode. It's not working all the time.
this.so.lock(this.so.ORIENTATIONS.LANDSCAPE_PRIMARY);
[plyrOptions]="{'autoplay': true, 'fullscreen': { 'enabled': true, 'fallback': 'full window/viewport' }, 'hideControls': false, 'ratio': '16:9', 'vimeo': {ratio:'16:9'}}"
This is the code and options I am using.
I need to play video in fullscreen mode on play button click.As per document it should be Entering in full screen mode on play.Please help closing this issue.
this.player.fullscreen.enter();