Programmatic fullscreen control (iOS SDK)
Trigger fullscreen mode programmatically, without user interaction.
Use setFullscreen(fullscreen:orientation:) method to enable or disable the fullscreen mode programmatically, and control orientation:
playerView.setFullscreen(fullscreen: true) // Enter fullscreen
playerView.setFullscreen(fullscreen: false) // Exit fullscreen
playerView.setFullscreen(fullscreen: true, orientation: .portrait) // Enter fullscreen in portraitBy default, fullscreen orientation is landscape, but it can be changed by setting the orientation to another possible value.
Possible values are: orientation: .landscapeRight or portrait.
Updated 17 days ago
