Any way to suppress system-provided playback controls on VideoPlayer?

AVKit provides the SwiftUI view VideoPlayer, and allows you to add an interactive overlay. But that overlay is normally placed behind the system-provided playback controls.

Is there any way to suppress those controls, without resorting to wrapping AVPlayerView?

Answered by DTS Engineer in 804039022

It sounds like you're looking for AVPlayerViewController's showsPlaybackControls.

It sounds like you're looking for AVPlayerViewController's showsPlaybackControls.

If AVPlayerView isn't working for you, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here.

If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?

Any way to suppress system-provided playback controls on VideoPlayer?
 
 
Q