JWPlayerViewControllerFullScreenDelegate
@objc
public protocol JWPlayerViewControllerFullScreenDelegate
Fullscreen events within the JWPlayerViewController are routed to this delegate.
-
Called before the player is enlarged to the size of the screen.
Declaration
Swift
func playerViewControllerWillGoFullScreen(_ controller: JWPlayerViewController) -> JWFullScreenViewController?
Parameters
controller
The JWPlayerViewController emitting the event.
Return Value
The
JWFullScreenViewController
that will be used for full screen. If nil is returned, will use the defaultJWFullScreenViewController
. -
Called after the player has enlarged to the size of the screen.
Declaration
Swift
func playerViewControllerDidGoFullScreen(_ controller: JWPlayerViewController)
Parameters
controller
The JWPlayerViewController emitting the event.
-
Called before the player dismisses full screen, and shrinks back to its normal size.
Declaration
Swift
func playerViewControllerWillDismissFullScreen(_ controller: JWPlayerViewController)
Parameters
controller
The JWPlayerViewController emitting the event.
-
Called after the player dismisses full screen, and shrinks back to its normal size.
Declaration
Swift
func playerViewControllerDidDismissFullScreen(_ controller: JWPlayerViewController)
Parameters
controller
The JWPlayerViewController emitting the event.