JWPlayerViewDelegate

@objc
public protocol JWPlayerViewDelegate

A delegate for receiving information on changes to the JWPlayerView.

  • Called when the player’s dimensions have changed.

    Declaration

    Swift

    func playerView(_ view: JWPlayerView, sizeChangedFrom oldSize: CGSize, to newSize: CGSize)

    Parameters

    view

    The JWPlayerView emitting the resize event.

    oldSize

    The previous size of the player.

    newSize

    The new size of the player on the screen.