Skip to content

VLCMedia: Added property to get each track

Hank Anderson requested to merge Sumou/VLCKit:VLCMedia-Tracks into master

Added property to get each track.

// Swift
let media: VLCMedia = ...
let videoTracks: [VLCMedia.Track] = media.videoTracks
let audioTracks: [VLCMedia.Track] = media.audioTracks
let textTracks: [VLCMedia.Track] = media.textTracks
// Obj-C
VLCMedia *media = ...
NSArray<VLCMediaTrack *> *videoTracks = media.videoTracks;
NSArray<VLCMediaTrack *> *audioTracks = media.audioTracks;
NSArray<VLCMediaTrack *> *textTracks = media.textTracks;

best regards.

Merge request reports

Loading