Protocols

The following protocols are available globally.

  • The JWDrmDataSource protocol defines methods that get called when assistance is required to reproduce DRM encrypted content.

    See more

    Declaration

    Objective-C

    @protocol JWDrmDataSource <NSObject>
  • Defines methods for a delegate which responds to events related to a JWPlaylistItem.

    See more

    Declaration

    Objective-C

    @protocol JWPlaylistItemDelegate <NSObject>
  • The JWButtonDelegate protocol defines methods that a delegate of a JWButton object can implement to be aware when the JWButton is interacted with.

    See more

    Declaration

    Objective-C

    @protocol JWButtonDelegate <NSObject>
  • The JWCastingDelegate protocol defines methods that a delegate of a JWCastController object can optionally implement to receive callbacks from the casting device.

    See

    JWCastController.
    See more

    Declaration

    Objective-C

    @protocol JWCastingDelegate <NSObject>
  • JWFirstFrameEvent is emitted after the first frame of the video is displayed.

    See more

    Declaration

    Objective-C

    @protocol JWFirstFrameEvent <NSObject>
  • JWStateChangeEvent contains the state information before the state is changed. This is a base class for other events.

    See more

    Declaration

    Objective-C

    @protocol JWStateChangeEvent <NSObject>
  • JWPauseEvent is emitted when the video is paused.

    See more

    Declaration

    Objective-C

    @protocol JWPauseEvent <NSObject>
  • JWBufferEvent is emitted when the video is buffering.

    See more

    Declaration

    Objective-C

    @protocol JWBufferEvent <JWStateChangeEvent>
  • JWReadyEvent is emitted when the player is ready to play.

    See more

    Declaration

    Objective-C

    @protocol JWReadyEvent <NSObject>
  • JWTimeEvent is emitted perdiodically when the video is playing.

    See more

    Declaration

    Objective-C

    @protocol JWTimeEvent <NSObject>
  • JWBufferChangeEvent is emitted periodically with a buffer percentage update.

    See more

    Declaration

    Objective-C

    @protocol JWBufferChangeEvent <JWTimeEvent>
  • JWSeekEvent is emitted when a seek operation is requested.

    See more

    Declaration

    Objective-C

    @protocol JWSeekEvent <NSObject>
  • JWMetaEvent is emitted when metadata is retrieved from the current playlist item.

    See more

    Declaration

    Objective-C

    @protocol JWMetaEvent <NSObject>
  • JWTrackChangeEvent is emitted when a new caption track is selected.

    See more

    Declaration

    Objective-C

    @protocol JWTrackChangedEvent <NSObject>
  • JWCaptionsListEvent is emitted when a list of captions tracks are retrieved.

    See more

    Declaration

    Objective-C

    @protocol JWCaptionsListEvent <NSObject>
  • The JWLevelsEvent is emitted when the quality levels or audio tracks information become available.

    See more

    Declaration

    Objective-C

    @protocol JWLevelsEvent <NSObject>
  • JWLevelsChangedEvent is emitted when the quality level is changed.

    See more

    Declaration

    Objective-C

    @protocol JWLevelsChangedEvent <NSObject>
  • JWPlaylistEvent is emitted when a new playlist is loaded.

    See more

    Declaration

    Objective-C

    @protocol JWPlaylistEvent <NSObject>
  • JWPlaylistItemEvent is emitted when a new playlist item is started.

    See more

    Declaration

    Objective-C

    @protocol JWPlaylistItemEvent <NSObject>
  • JWFullScreenEvent is emitted when a transition occurs to and fro fullscreen.

    See more

    Declaration

    Objective-C

    @protocol JWFullscreenEvent <NSObject>
  • JWRezieEvent is emitted when a resize of the player occurs.

    See more

    Declaration

    Objective-C

    @protocol JWResizeEvent <NSObject>
  • JWControlEvent is emitted when the player controls are enabled or disabled.

    See more

    Declaration

    Objective-C

    @protocol JWControlsEvent <NSObject>
  • JWPlaybackRateEvent is emitted when the playback rate of the player changes.

    See more

    Declaration

    Objective-C

    @protocol JWPlaybackRateEvent <NSObject>
  • JWViewabilityEvent is emitted when the viewability status of the player changes

    See more

    Declaration

    Objective-C

    @protocol JWViewabilityEvent <NSObject>
  • JWErrorEvent is emitted when there is an unrecoverable error from the player.

    See more

    Declaration

    Objective-C

    @protocol JWErrorEvent <NSObject>
  • The JWPlayerDelegate protocol defines methods that a delegate of a JWPlayerController object can optionally implement to intervene when player callbacks are captured.

    See more

    Declaration

    Objective-C

    @protocol JWPlayerDelegate <NSObject>
  • JWRelatedInteractiveEvent provides details of a user interaction with the Recommendation UI.

    See more

    Declaration

    Objective-C

    @protocol JWRelatedInteractionEvent
  • JWRelatedOpenEvent provides information on an action taken to open the Recommendations UI.

    See more

    Declaration

    Objective-C

    @protocol JWRelatedOpenEvent <JWRelatedInteractionEvent>
  • JWRelatedPlayEvent describes a an event where a Recommendation item is chosen for playback.

    See more

    Declaration

    Objective-C

    @protocol JWRelatedPlayEvent <NSObject>