youtube / youtube-ios-player-helper

Lightweight helper library that allows iOS developers to add inline playback of YouTube videos through a WebView
Other
1.64k stars 677 forks source link

Video in Landscape Mode #463

Closed Ravinder-webonise closed 2 years ago

Ravinder-webonise commented 2 years ago

I start to playing video in landscape, but when I rotate to portrait, the player will follow the orientation. Anyone know how to make the player only playing in landscape mode?

brol1dev commented 2 years ago

Hi @Ravinder-webonise ,

This should be possible to do with custom code. You can make the current visible ViewController not autorotate with Apple APIs. This is one example that should work: shouldAutorotate.

I'll close the ticket but feel free to open a new one if this issue pertains more to this video library.