-
Start playback.
Declaration
Swift
func play(assetId: String, autoPlay: Bool, entitlementToken: String?)
Parameters
assetId
Asset to be played.
autoPlay
Should stream start playback.
entitlementToken
Signed assetId, containing rights for playback.
-
Start playback.
Declaration
Swift
func play(assetId: String, autoPlay: Bool, entitlementToken: String?, startPosition: Float64)
Parameters
assetId
Asset to be played.
autoPlay
Should stream start playback.
entitlementToken
Signed assetId, containing rights for playback.
startPosition
The position to start playback from.
-
Attempts to start offline playback.
Declaration
Swift
func playOffline(assetId: String) throws
Parameters
assetId
Asset to be played.
-
Attempts to start offline playback.
Declaration
Swift
func playOffline(assetId: String, startPosition: Float64) throws
Parameters
assetId
Asset to be played.
startPosition
The position to start playback from, if nil HLS will decide the position.