Extend this structure to send your custom playback events to the JavaScript environment.


struct TVPlaybackEvent


See Also

Controlling Playback

func next()

Plays the next media item in the playlist.

func pause()

Pauses the currently playing item.

func previous()

Plays the previous media item in the playlist.

var state: TVPlaybackState

The current state of the player.

enum TVPlaybackState

The possible states of a player.

protocol TVPlaybackEventMarshaling

A protocol used for sending and receiving information across the JavaScript bridge.

class TVPlaybackCustomEventUserInfo

The user information used in a custom playback event.