28 #import <Foundation/Foundation.h>
32 NS_ASSUME_NONNULL_BEGIN
38 extern NSString *
const VLCMetaInformationTitle __attribute__((deprecated));
39 extern NSString *
const VLCMetaInformationArtist __attribute__((deprecated));
40 extern NSString *
const VLCMetaInformationGenre __attribute__((deprecated));
41 extern NSString *
const VLCMetaInformationCopyright __attribute__((deprecated));
42 extern NSString *
const VLCMetaInformationAlbum __attribute__((deprecated));
43 extern NSString *
const VLCMetaInformationTrackNumber __attribute__((deprecated));
44 extern NSString *
const VLCMetaInformationDescription __attribute__((deprecated));
45 extern NSString *
const VLCMetaInformationRating __attribute__((deprecated));
46 extern NSString *
const VLCMetaInformationDate __attribute__((deprecated));
47 extern NSString *
const VLCMetaInformationSetting __attribute__((deprecated));
48 extern NSString *
const VLCMetaInformationURL __attribute__((deprecated));
49 extern NSString *
const VLCMetaInformationLanguage __attribute__((deprecated));
50 extern NSString *
const VLCMetaInformationNowPlaying __attribute__((deprecated));
51 extern NSString *
const VLCMetaInformationPublisher __attribute__((deprecated));
52 extern NSString *
const VLCMetaInformationEncodedBy __attribute__((deprecated));
53 extern NSString *
const VLCMetaInformationArtworkURL __attribute__((deprecated));
54 extern NSString *
const VLCMetaInformationArtwork __attribute__((deprecated));
55 extern NSString *
const VLCMetaInformationTrackID __attribute__((deprecated));
56 extern NSString *
const VLCMetaInformationTrackTotal __attribute__((deprecated));
57 extern NSString *
const VLCMetaInformationDirector __attribute__((deprecated));
58 extern NSString *
const VLCMetaInformationSeason __attribute__((deprecated));
59 extern NSString *
const VLCMetaInformationEpisode __attribute__((deprecated));
60 extern NSString *
const VLCMetaInformationShowName __attribute__((deprecated));
61 extern NSString *
const VLCMetaInformationActors __attribute__((deprecated));
62 extern NSString *
const VLCMetaInformationAlbumArtist __attribute__((deprecated));
63 extern NSString *
const VLCMetaInformationDiscNumber __attribute__((deprecated));
69 extern NSString *
const VLCMediaMetaChanged;
75 typedef NS_ENUM(NSInteger, VLCMediaState) {
76 VLCMediaStateNothingSpecial,
77 VLCMediaStateBuffering,
95 - (void)mediaMetaDataDidChange:(
VLCMedia *)aMedia;
102 - (void)mediaDidFinishParsing:(
VLCMedia *)aMedia;
121 + (instancetype)mediaWithURL:(NSURL *)anURL;
129 + (instancetype)mediaWithPath:(NSString *)aPath;
137 + (NSString *)codecNameForFourCC:(uint32_t)fourcc trackType:(NSString *)trackType;
146 + (instancetype)mediaAsNodeWithName:(NSString *)aName;
154 - (instancetype)initWithURL:(NSURL *)anURL;
161 - (instancetype)initWithPath:(NSString *)aPath;
174 - (instancetype)initWithStream:(NSInputStream *)stream;
181 - (instancetype)initAsNodeWithName:(NSString *)aName;
186 typedef NS_ENUM(NSUInteger, VLCMediaOrientation) {
187 VLCMediaOrientationTopLeft,
188 VLCMediaOrientationTopRight,
189 VLCMediaOrientationBottomLeft,
190 VLCMediaOrientationBottomRight,
191 VLCMediaOrientationLeftTop,
192 VLCMediaOrientationLeftBottom,
193 VLCMediaOrientationRightTop,
194 VLCMediaOrientationRightBottom
200 typedef NS_ENUM(NSUInteger, VLCMediaProjection) {
201 VLCMediaProjectionRectangular,
202 VLCMediaProjectionEquiRectangular,
203 VLCMediaProjectionCubemapLayoutStandard = 0x100
212 VLCMediaTypeDirectory,
215 VLCMediaTypePlaylist,
222 @property (readonly) VLCMediaType
mediaType;
233 - (NSComparisonResult)compare:(nullable
VLCMedia *)media;
239 @property (nonatomic, weak, nullable) id<VLCMediaDelegate>
delegate;
256 - (
VLCTime *)lengthWaitUntilDate:(NSDate *)aDate;
262 @property (nonatomic, readonly) BOOL isParsed
__attribute__((deprecated));
267 typedef NS_ENUM(
unsigned, VLCMediaParsedStatus)
269 VLCMediaParsedStatusInit = 0,
270 VLCMediaParsedStatusSkipped,
271 VLCMediaParsedStatusFailed,
272 VLCMediaParsedStatusTimeout,
273 VLCMediaParsedStatusDone
278 @property (nonatomic, readonly) VLCMediaParsedStatus
parsedStatus;
283 @property (nonatomic, readonly, strong, nullable) NSURL *
url;
297 - (nullable NSString *)metadataForKey:(NSString *)key __attribute__((deprecated));
306 - (void)setMetadata:(NSString *)data forKey:(NSString *)key __attribute__((deprecated));
313 @property (NS_NONATOMIC_IOSONLY, readonly) BOOL saveMetadata
__attribute__((deprecated));
319 @property (nonatomic, readonly, copy) NSDictionary * metaDictionary
__attribute__((deprecated));
329 @property (nonatomic, readonly) VLCMediaState
state;
532 VLCMediaParseLocal = 0x00,
533 VLCMediaParseNetwork = 0x01,
534 VLCMediaFetchLocal = 0x02,
535 VLCMediaFetchNetwork = 0x04,
536 VLCMediaDoInteract = 0x08,
549 - (int)parseWithOptions:(VLCMediaParsingOptions)options;
562 - (int)parseWithOptions:(VLCMediaParsingOptions)options timeout:(
int)timeoutValue;
580 - (void)addOption:(NSString *)option;
581 - (void)addOptions:(NSDictionary*)options;
598 - (int)storeCookie:(NSString *)cookie
599 forHost:(NSString *)host
600 path:(NSString *)path;
618 const float inputBitrate;
620 const int demuxReadBytes;
621 const float demuxBitrate;
622 const int demuxCorrupted;
623 const int demuxDiscontinuity;
625 const int decodedVideo;
626 const int decodedAudio;
628 const int displayedPictures;
629 const int lostPictures;
631 const int playedAudioBuffers;
632 const int lostAudioBuffers;
634 const int sentPackets;
636 const float sendBitrate;
664 #pragma mark - VLCMedia+Deprecated
673 @property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSDictionary *stats DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
679 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfReadBytesOnInput DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
684 @property (NS_NONATOMIC_IOSONLY, readonly)
float inputBitrate DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
690 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfReadBytesOnDemux DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
695 @property (NS_NONATOMIC_IOSONLY, readonly)
float demuxBitrate DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
701 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDecodedVideoBlocks DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
706 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDecodedAudioBlocks DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
712 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDisplayedPictures DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
717 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfLostPictures DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
723 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfPlayedAudioBuffers DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
728 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfLostAudioBuffers DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
734 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfSentPackets DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
739 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfSentBytes DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
744 @property (NS_NONATOMIC_IOSONLY, readonly)
float streamOutputBitrate DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
750 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfCorruptedDataPackets DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
756 @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDiscontinuties DEPRECATED_MSG_ATTRIBUTE(
"Use -[VLCMedia statistics] instead");
760 NS_ASSUME_NONNULL_END