JWPlayerCinematicViewControllerDelegate
@objc
public protocol JWPlayerCinematicViewControllerDelegate
Events within the JWCinematicViewController are routed to this delegate.
-
Called when the control bar is done hiding or showing itself.
Declaration
Swift
func playerViewController(_ controller: JWCinematicViewController, controlBarVisibilityChanged isVisible: Bool)
Parameters
controller
The JWCinematicViewController emitting the event.
isVisible
true, if the control bar has finished showing itself. false if it has finished hiding itself.
-
Called when the player’s dimensions have changed.
Declaration
Swift
func playerViewController(_ controller: JWCinematicViewController, sizeChangedFrom oldSize: CGSize, to newSize: CGSize)
Parameters
controller
The JWCinematicViewController emitting the resize event.
oldSize
The previous size of the player view.
newSize
The new size of the player on the screen.