AudioTrack
@objc(LwayveAudioTrack)
public protocol AudioTrack : NSCoding
The protocol representing the interface for the object that can be played in the audio player.
-
The unique identifier of the audio track.
Declaration
Swift
var identifier: String { get }
-
The audio clip identifier.
Declaration
Swift
var clipId: String? { get }
-
An instance of the URL that references a media resource.
Declaration
Swift
var url: URL { get }
-
The name of the audio track.
Declaration
Swift
var name: String { get }
-
The language of the audio track.
Declaration
Swift
var language: LwayveLanguage { get }
-
The duration of the audio track. The initial value is kLwayveAudioTrackDurationIndefinite until the duration has been loaded. To ensure that the value of the duration is loaded, use durationLoadHandler.
Declaration
Swift
var duration: TimeInterval { get }
-
Set your handler to receive updates about the loading of the audio track duration.
Declaration
Swift
var durationLoadHandler: DurationLoadHandler? { get set }
-
Undocumented
Declaration
Swift
var actions: ClipActions { get }
-
Segment ID from the experience containing the audio track
Declaration
Swift
var segmentId: String? { get }
-
Program ID from the experience containing the audio track
Declaration
Swift
var programId: String? { get }
-
Experience ID from the experience containing the audio track
Declaration
Swift
var experienceId: String? { get }
-
Apple Music Song ID
Declaration
Swift
var appleMusicId: String? { get }
-
Apple Music Song Duration
Declaration
Swift
var appleMusicDuration: TimeInterval { get }