I am using AVPlayerViewController on tvOS and wish to hide the transport bar to implement my own.
The docs here list a property for that functionality playbackControlsIncludeTransportBar https://developer.apple.com/documentation/avkit/avplayerviewcontroller/2874218-playbackcontrolsincludetransport but the same doc also mentions:
So far I am unable to get it to work.
Any clues or documentation on how to get this to work?
Thanks
The docs here list a property for that functionality playbackControlsIncludeTransportBar https://developer.apple.com/documentation/avkit/avplayerviewcontroller/2874218-playbackcontrolsincludetransport but the same doc also mentions:
Without mentioned what DOES change the visibility.Changing the value of this property doesn’t immediately change the visibility of the transport bar.
So far I am unable to get it to work.
Code Block let avPlayerViewController = AVPlayerViewController() avPlayerViewController.playbackControlsIncludeTransportBar = false avPlayerViewController.showsPlaybackControls = true addChild(avPlayerViewController) avPlayerViewController.didMove(toParent: self) // adds subview view.addSubviewAndFillBounds(avPlayerViewController.view)
Any clues or documentation on how to get this to work?
Thanks