Pauses the currently playing item.
SDK
- tvOS 12.0+
Framework
- TVMLKit
Declaration
func pause()
Pauses the currently playing item.
SDK
Framework
func pause()
func next()
Plays the next media item in the playlist.
func previous()
Plays the previous media item in the playlist.
var state: TVPlayback State
The current state of the player.
enum TVPlayback State
The possible states of a player.
func dispatch(event: TVPlayback Event, user Info: TVPlayback Event Marshaling?, completion: ((Bool) -> Void)?)
Dispatches custom playback events to the JavaScript environment.
struct TVPlayback Event
Extend this structure to send your custom playback events to the JavaScript environment.
protocol TVPlayback Event Marshaling
A protocol used for sending and receiving information across the JavaScript bridge.
class TVPlayback Custom Event User Info
The user information used in a custom playback event.