27 #import <Foundation/Foundation.h> 28 #import "VLCMediaList.h" 35 extern NSString *
const VLCMetaInformationTitle;
36 extern NSString *
const VLCMetaInformationArtist;
37 extern NSString *
const VLCMetaInformationGenre;
38 extern NSString *
const VLCMetaInformationCopyright;
39 extern NSString *
const VLCMetaInformationAlbum;
40 extern NSString *
const VLCMetaInformationTrackNumber;
41 extern NSString *
const VLCMetaInformationDescription;
42 extern NSString *
const VLCMetaInformationRating;
43 extern NSString *
const VLCMetaInformationDate;
44 extern NSString *
const VLCMetaInformationSetting;
45 extern NSString *
const VLCMetaInformationURL;
46 extern NSString *
const VLCMetaInformationLanguage;
47 extern NSString *
const VLCMetaInformationNowPlaying;
48 extern NSString *
const VLCMetaInformationPublisher;
49 extern NSString *
const VLCMetaInformationEncodedBy;
50 extern NSString *
const VLCMetaInformationArtworkURL;
51 extern NSString *
const VLCMetaInformationArtwork;
52 extern NSString *
const VLCMetaInformationTrackID;
53 extern NSString *
const VLCMetaInformationTrackTotal;
54 extern NSString *
const VLCMetaInformationDirector;
55 extern NSString *
const VLCMetaInformationSeason;
56 extern NSString *
const VLCMetaInformationEpisode;
57 extern NSString *
const VLCMetaInformationShowName;
58 extern NSString *
const VLCMetaInformationActors;
59 extern NSString *
const VLCMetaInformationAlbumArtist;
60 extern NSString *
const VLCMetaInformationDiscNumber;
66 extern NSString *
const VLCMediaMetaChanged;
72 typedef NS_ENUM(NSInteger, VLCMediaState) {
73 VLCMediaStateNothingSpecial,
74 VLCMediaStateBuffering,
92 - (void)mediaMetaDataDidChange:(
VLCMedia *)aMedia;
99 - (void)mediaDidFinishParsing:(
VLCMedia *)aMedia;
118 + (instancetype)mediaWithURL:(NSURL *)anURL;
126 + (instancetype)mediaWithPath:(NSString *)aPath;
134 + (NSString *)codecNameForFourCC:(uint32_t)fourcc trackType:(NSString *)trackType;
143 + (instancetype)mediaAsNodeWithName:(NSString *)aName;
151 - (instancetype)initWithURL:(NSURL *)anURL;
158 - (instancetype)initWithPath:(NSString *)aPath;
165 - (instancetype)initAsNodeWithName:(NSString *)aName;
173 VLCMediaTypeDirectory,
176 VLCMediaTypePlaylist,
183 @property (readonly) VLCMediaType
mediaType;
194 - (NSComparisonResult)compare:(
VLCMedia *)media;
200 @property (nonatomic, weak) id<VLCMediaDelegate>
delegate;
217 - (
VLCTime *)lengthWaitUntilDate:(NSDate *)aDate;
223 @property (nonatomic, readonly) BOOL isParsed
__attribute__((deprecated));
228 typedef NS_ENUM(
unsigned, VLCMediaParsedStatus)
230 VLCMediaParsedStatusInit = 0,
231 VLCMediaParsedStatusSkipped,
232 VLCMediaParsedStatusFailed,
233 VLCMediaParsedStatusDone
238 @property (nonatomic, readonly) VLCMediaParsedStatus
parsedStatus;
243 @property (nonatomic, readonly, strong) NSURL *
url;
256 - (NSString *)metadataForKey:(NSString *)key;
264 - (void)setMetadata:(NSString *)data forKey:(NSString *)key;
280 @property (nonatomic, readonly) VLCMediaState
state;
462 VLCMediaParseLocal = 0x00,
463 VLCMediaParseNetwork = 0x01,
464 VLCMediaFetchLocal = 0x02,
465 VLCMediaFetchNetwork = 0x04,
483 - (int)parseWithOptions:(VLCMediaParsingOptions)options;
496 - (int)parseWithOptions:(VLCMediaParsingOptions)options timeout:(
int)timeoutValue;
506 - (void) addOptions:(NSDictionary*) options;
513 @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSDictionary *
stats;
515 #pragma mark - individual stats