iPlayer
@objc public protocol iPlayer
Interface for Player
-
iPlayerEventinstance connected to theiPlayerinstanceDeclaration
Swift
weak var playerEvent: iPlayerEvent? -
The current PlayingState of the
iPlayerinstance.Declaration
Swift
var currentState: PlayingState -
The current elapsed playback time of the stream.
Declaration
Swift
var streamPosition: Float64 -
The length of the current stream
Declaration
Swift
var streamDuration: Float64 -
The available audio tracks for the current stream
Declaration
Swift
var audioTracks: [iTrackOption]? -
GET current selected audio track SET the track to be played or disabled if nil
Declaration
Swift
var selectedAudioTrack: iTrackOption? -
The available subtitle tracks for the current stream
Declaration
Swift
var subtitleTracks: [iTrackOption]? -
GET current selected subtitle track SET the track to be played or disabled if nil
Declaration
Swift
var selectedSubtitleTrack: iTrackOption? -
GET current output volume SET new output volume
Declaration
Swift
var volume: Float -
Reloads the current being played stream.
Declaration
Swift
func reload() -
Toggle for playing and pausing the current stream.
Declaration
Swift
func playPause() -
Resumes playback
Declaration
Swift
func play() -
Pauses playaback
Declaration
Swift
func pause() -
Seek to a new position in the current stream.
Declaration
Swift
func seekTo(position: Float64, relative: Bool) -
Stops playback of the current stream
Declaration
Swift
func stop() -
Flushes the current stream and releases the instance
Declaration
Swift
func flush()
View on GitHub
iPlayer Protocol Reference