Reputation: 1864
I have an AVPlayerViewController
with an AVPlayer
in it, and what I need is that the controls of the player (play, pause, time slider) never hide. Right now, after more or less 4 seconds of playing the video, they become hidden, and you have to tap the screen to show them again. I haven't been able to find a solution to that.. any ideas?
Upvotes: 3
Views: 1862
Reputation: 3708
You can set that by using Key-Value Coding
Swift:
// playerController : AVPlayerViewController
playerController.setValue(false, forKey: "canHidePlaybackControls")
Upvotes: 6