Ofir Malachi
Ofir Malachi

Reputation: 1286

AVPlayerViewController - How to display always playback controls

AVPlayerViewController, by default is auto-hides his playback controls.

is it possible to keep playback controls visible for good?

showsPlaybackControls = YES;

Upvotes: 2

Views: 2044

Answers (2)

Tak Rahul
Tak Rahul

Reputation: 176

You can use player.showsPlaybackControls = true it will show you the default playback controls.

Upvotes: 0

Rameez
Rameez

Reputation: 412

That's not possible. There is not any Public API of AVPlayerViewController to keep playback controls visible all time. You must have to make your own custom playback controls for this i.e. play button, seekbar, duration label etc.

Upvotes: 2

Related Questions