ios - How to make a AVPlayerViewController go to fullscreen programmatically? -


i'm trying make avplayerviewcontroller go full screen mode programmatically, coming "embedded" mode, not appear possible published api.

is there workaround i'm missing? i'm interested in obtaining same animation 1 when user presses full screen button on bottom right of controls.

using mpmovieplayercontroller not viable alternative since might have more 1 video playing @ time.

thanks.

avplayerviewcontroller subclass of uiviewcontroller, presentable other view controller subclass. able use presentviewcontroller:animated:completion?

self.avplayercontroller.modalpresentationstyle = uimodalpresentationoverfullscreen; [self presentviewcontroller:self.avplayercontroller animated:yes completion:nil]; 

this shows "done" button in top left-hand corner.


Comments

Popular posts from this blog

go - Idiomatic way to handle template errors in golang -

python - Creating a new virtualenv gives a permissions error -

c# - What is a NullReferenceException, and how do I fix it? -