VLCMedia.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. /*****************************************************************************
  2. * VLCMedia.h: VLCKit.framework VLCMedia header
  3. *****************************************************************************
  4. * Copyright (C) 2007 Pierre d'Herbemont
  5. * Copyright (C) 2013 Felix Paul Kühne
  6. * Copyright (C) 2007-2013 VLC authors and VideoLAN
  7. * $Id$
  8. *
  9. * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
  10. * Felix Paul Kühne <fkuehne # videolan.org>
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU Lesser General Public License as published by
  14. * the Free Software Foundation; either version 2.1 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Lesser General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Lesser General Public License
  23. * along with this program; if not, write to the Free Software Foundation,
  24. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  25. *****************************************************************************/
  26. #import <Foundation/Foundation.h>
  27. #import "VLCMediaList.h"
  28. #import "VLCTime.h"
  29. NS_ASSUME_NONNULL_BEGIN
  30. /* Meta Dictionary Keys */
  31. /**
  32. * Standard dictionary keys for retreiving meta data.
  33. */
  34. extern NSString *const VLCMetaInformationTitle; /* NSString */
  35. extern NSString *const VLCMetaInformationArtist; /* NSString */
  36. extern NSString *const VLCMetaInformationGenre; /* NSString */
  37. extern NSString *const VLCMetaInformationCopyright; /* NSString */
  38. extern NSString *const VLCMetaInformationAlbum; /* NSString */
  39. extern NSString *const VLCMetaInformationTrackNumber; /* NSString */
  40. extern NSString *const VLCMetaInformationDescription; /* NSString */
  41. extern NSString *const VLCMetaInformationRating; /* NSString */
  42. extern NSString *const VLCMetaInformationDate; /* NSString */
  43. extern NSString *const VLCMetaInformationSetting; /* NSString */
  44. extern NSString *const VLCMetaInformationURL; /* NSString */
  45. extern NSString *const VLCMetaInformationLanguage; /* NSString */
  46. extern NSString *const VLCMetaInformationNowPlaying; /* NSString */
  47. extern NSString *const VLCMetaInformationPublisher; /* NSString */
  48. extern NSString *const VLCMetaInformationEncodedBy; /* NSString */
  49. extern NSString *const VLCMetaInformationArtworkURL; /* NSString */
  50. extern NSString *const VLCMetaInformationArtwork; /* NSImage */
  51. extern NSString *const VLCMetaInformationTrackID; /* NSString */
  52. extern NSString *const VLCMetaInformationTrackTotal; /* NSString */
  53. extern NSString *const VLCMetaInformationDirector; /* NSString */
  54. extern NSString *const VLCMetaInformationSeason; /* NSString */
  55. extern NSString *const VLCMetaInformationEpisode; /* NSString */
  56. extern NSString *const VLCMetaInformationShowName; /* NSString */
  57. extern NSString *const VLCMetaInformationActors; /* NSString */
  58. extern NSString *const VLCMetaInformationAlbumArtist; /* NSString */
  59. extern NSString *const VLCMetaInformationDiscNumber; /* NSString */
  60. /* Notification Messages */
  61. /**
  62. * Available notification messages.
  63. */
  64. extern NSString *const VLCMediaMetaChanged; ///< Notification message for when the media's meta data has changed
  65. // Forward declarations, supresses compiler error messages
  66. @class VLCMediaList;
  67. @class VLCMedia;
  68. typedef NS_ENUM(NSInteger, VLCMediaState) {
  69. VLCMediaStateNothingSpecial, ///< Nothing
  70. VLCMediaStateBuffering, ///< Stream is buffering
  71. VLCMediaStatePlaying, ///< Stream is playing
  72. VLCMediaStateError, ///< Can't be played because an error occurred
  73. };
  74. /**
  75. * Informal protocol declaration for VLCMedia delegates. Allows data changes to be
  76. * trapped.
  77. */
  78. @protocol VLCMediaDelegate <NSObject>
  79. @optional
  80. /**
  81. * Delegate method called whenever the media's meta data was changed for whatever reason
  82. * \note this is called more often than mediaDidFinishParsing, so it may be less efficient
  83. * \param aMedia The media resource whose meta data has been changed.
  84. */
  85. - (void)mediaMetaDataDidChange:(VLCMedia *)aMedia;
  86. /**
  87. * Delegate method called whenever the media was parsed.
  88. * \param aMedia The media resource whose meta data has been changed.
  89. */
  90. - (void)mediaDidFinishParsing:(VLCMedia *)aMedia;
  91. @end
  92. /**
  93. * Defines files and streams as a managed object. Each media object can be
  94. * administered seperately. VLCMediaPlayer or VLCMediaList must be used
  95. * to execute the appropriate playback functions.
  96. * \see VLCMediaPlayer
  97. * \see VLCMediaList
  98. */
  99. @interface VLCMedia : NSObject
  100. /* Factories */
  101. /**
  102. * Manufactures a new VLCMedia object using the URL specified.
  103. * \param anURL URL to media to be accessed.
  104. * \return A new VLCMedia object, only if there were no errors. This object will be automatically released.
  105. * \see initWithMediaURL
  106. */
  107. + (instancetype)mediaWithURL:(NSURL *)anURL;
  108. /**
  109. * Manufactures a new VLCMedia object using the path specified.
  110. * \param aPath Path to the media to be accessed.
  111. * \return A new VLCMedia object, only if there were no errors. This object will be automatically released.
  112. * \see initWithPath
  113. */
  114. + (instancetype)mediaWithPath:(NSString *)aPath;
  115. /**
  116. * convienience method to return a user-readable codec name for the given FourCC
  117. * \param fourcc the FourCC to process
  118. * \param trackType a VLC track type if known to speed-up the name search
  119. * \return a NSString containing the codec name if recognized, else an empty string
  120. */
  121. + (NSString *)codecNameForFourCC:(uint32_t)fourcc trackType:(NSString *)trackType;
  122. /**
  123. * TODO
  124. * \param aName TODO
  125. * \return a new VLCMedia object, only if there were no errors. This object
  126. * will be automatically released.
  127. * \see initAsNodeWithName
  128. */
  129. + (instancetype)mediaAsNodeWithName:(NSString *)aName;
  130. /* Initializers */
  131. /**
  132. * Initializes a new VLCMedia object to use the specified URL.
  133. * \param anURL the URL to media to be accessed.
  134. * \return A new VLCMedia object, only if there were no errors.
  135. */
  136. - (instancetype)initWithURL:(NSURL *)anURL;
  137. /**
  138. * Initializes a new VLCMedia object to use the specified path.
  139. * \param aPath Path to media to be accessed.
  140. * \return A new VLCMedia object, only if there were no errors.
  141. */
  142. - (instancetype)initWithPath:(NSString *)aPath;
  143. /**
  144. * TODO
  145. * \param aName TODO
  146. * \return A new VLCMedia object, only if there were no errors.
  147. */
  148. - (instancetype)initAsNodeWithName:(NSString *)aName;
  149. /**
  150. * list of possible media types that could be returned by "mediaType"
  151. */
  152. typedef NS_ENUM(NSUInteger, VLCMediaType) {
  153. VLCMediaTypeUnknown,
  154. VLCMediaTypeFile,
  155. VLCMediaTypeDirectory,
  156. VLCMediaTypeDisc,
  157. VLCMediaTypeStream,
  158. VLCMediaTypePlaylist,
  159. };
  160. /**
  161. * media type
  162. * \return returns the type of a media (VLCMediaType)
  163. */
  164. @property (readonly) VLCMediaType mediaType;
  165. /**
  166. * Returns an NSComparisonResult value that indicates the lexical ordering of
  167. * the receiver and a given meda.
  168. * \param media The media with which to compare with the receiver.
  169. * \return NSOrderedAscending if the URL of the receiver precedes media in
  170. * lexical ordering, NSOrderedSame if the URL of the receiver and media are
  171. * equivalent in lexical value, and NSOrderedDescending if the URL of the
  172. * receiver follows media. If media is nil, returns NSOrderedDescending.
  173. */
  174. - (NSComparisonResult)compare:(VLCMedia *)media;
  175. /* Properties */
  176. /**
  177. * Receiver's delegate.
  178. */
  179. @property (nonatomic, weak) id<VLCMediaDelegate> delegate;
  180. /**
  181. * A VLCTime object describing the length of the media resource, only if it is
  182. * available. Use lengthWaitUntilDate: to wait for a specified length of time.
  183. * \see lengthWaitUntilDate
  184. */
  185. @property (nonatomic, readwrite, strong) VLCTime * length;
  186. /**
  187. * Returns a VLCTime object describing the length of the media resource,
  188. * however, this is a blocking operation and will wait until the preparsing is
  189. * completed before returning anything.
  190. * \param aDate Time for operation to wait until, if there are no results
  191. * before specified date then nil is returned.
  192. * \return The length of the media resource, nil if it couldn't wait for it.
  193. */
  194. - (VLCTime *)lengthWaitUntilDate:(NSDate *)aDate;
  195. /**
  196. * Determines if the media has already been preparsed.
  197. * \deprecated use parseStatus instead
  198. */
  199. @property (nonatomic, readonly) BOOL isParsed __attribute__((deprecated));
  200. /**
  201. * list of possible parsed states returnable by parsedStatus
  202. */
  203. typedef NS_ENUM(unsigned, VLCMediaParsedStatus)
  204. {
  205. VLCMediaParsedStatusInit = 0,
  206. VLCMediaParsedStatusSkipped,
  207. VLCMediaParsedStatusFailed,
  208. VLCMediaParsedStatusDone
  209. };
  210. /**
  211. * \return Returns the parse status of the media
  212. */
  213. @property (nonatomic, readonly) VLCMediaParsedStatus parsedStatus;
  214. /**
  215. * The URL for the receiver's media resource.
  216. */
  217. @property (nonatomic, readonly, strong) NSURL * url;
  218. /**
  219. * The receiver's sub list.
  220. */
  221. @property (nonatomic, readonly, strong) VLCMediaList * subitems;
  222. /**
  223. * get meta property for key
  224. * \note for performance reasons, fetching the metaDictionary will be faster!
  225. * \see metaDictionary
  226. * \see dictionary keys above
  227. */
  228. - (NSString *)metadataForKey:(NSString *)key;
  229. /**
  230. * set meta property for key
  231. * \param data the metadata to set as NSString
  232. * \param key the metadata key
  233. * \see dictionary keys above
  234. */
  235. - (void)setMetadata:(NSString *)data forKey:(NSString *)key;
  236. /**
  237. * Save the previously changed metadata
  238. * \return true if saving was successful
  239. */
  240. @property (NS_NONATOMIC_IOSONLY, readonly) BOOL saveMetadata;
  241. /**
  242. * The receiver's meta data as a NSDictionary object.
  243. */
  244. @property (nonatomic, readonly, copy) NSDictionary * metaDictionary;
  245. /**
  246. * The receiver's state, such as Playing, Error, NothingSpecial, Buffering.
  247. */
  248. @property (nonatomic, readonly) VLCMediaState state;
  249. /**
  250. * returns a bool whether is the media is expected to play fluently on this
  251. * device or not. It always returns YES on a Mac.*/
  252. @property (NS_NONATOMIC_IOSONLY, getter=isMediaSizeSuitableForDevice, readonly) BOOL mediaSizeSuitableForDevice;
  253. /**
  254. * Tracks information NSDictionary Possible Keys
  255. */
  256. /**
  257. * Codec information
  258. * \note returns a NSNumber
  259. */
  260. extern NSString *const VLCMediaTracksInformationCodec;
  261. /**
  262. * tracks information ID
  263. * \note returns a NSNumber
  264. */
  265. extern NSString *const VLCMediaTracksInformationId;
  266. /**
  267. * track information type
  268. * \note returns a NSString
  269. * \see VLCMediaTracksInformationTypeAudio
  270. * \see VLCMediaTracksInformationTypeVideo
  271. * \see VLCMediaTracksInformationTypeText
  272. * \see VLCMediaTracksInformationTypeUnknown
  273. */
  274. extern NSString *const VLCMediaTracksInformationType;
  275. /**
  276. * codec profile
  277. * \note returns a NSNumber
  278. */
  279. extern NSString *const VLCMediaTracksInformationCodecProfile;
  280. /**
  281. * codec level
  282. * \note returns a NSNumber
  283. */
  284. extern NSString *const VLCMediaTracksInformationCodecLevel;
  285. /**
  286. * track bitrate
  287. * \note returns the bitrate as NSNumber
  288. */
  289. extern NSString *const VLCMediaTracksInformationBitrate;
  290. /**
  291. * track language
  292. * \note returns the language as NSString
  293. */
  294. extern NSString *const VLCMediaTracksInformationLanguage;
  295. /**
  296. * track description
  297. * \note returns the description as NSString
  298. */
  299. extern NSString *const VLCMediaTracksInformationDescription;
  300. /**
  301. * number of audio channels of a given track
  302. * \note returns the audio channel number as NSNumber
  303. */
  304. extern NSString *const VLCMediaTracksInformationAudioChannelsNumber;
  305. /**
  306. * audio rate
  307. * \note returns the audio rate as NSNumber
  308. */
  309. extern NSString *const VLCMediaTracksInformationAudioRate;
  310. /**
  311. * video track height
  312. * \note returns the height as NSNumber
  313. */
  314. extern NSString *const VLCMediaTracksInformationVideoHeight;
  315. /**
  316. * video track width
  317. * \note the width as NSNumber
  318. */
  319. extern NSString *const VLCMediaTracksInformationVideoWidth;
  320. /**
  321. * source aspect ratio
  322. * \note returns the source aspect ratio as NSNumber
  323. */
  324. extern NSString *const VLCMediaTracksInformationSourceAspectRatio;
  325. /**
  326. * source aspect ratio denominator
  327. * \note returns the source aspect ratio denominator as NSNumber
  328. */
  329. extern NSString *const VLCMediaTracksInformationSourceAspectRatioDenominator;
  330. /**
  331. * frame rate
  332. * \note returns the frame rate as NSNumber
  333. */
  334. extern NSString *const VLCMediaTracksInformationFrameRate;
  335. /**
  336. * frame rate denominator
  337. * \note returns the frame rate denominator as NSNumber
  338. */
  339. extern NSString *const VLCMediaTracksInformationFrameRateDenominator;
  340. /**
  341. * text encoding
  342. * \note returns the text encoding as NSString
  343. */
  344. extern NSString *const VLCMediaTracksInformationTextEncoding;
  345. /**
  346. * audio track information NSDictionary value for VLCMediaTracksInformationType
  347. */
  348. extern NSString *const VLCMediaTracksInformationTypeAudio;
  349. /**
  350. * video track information NSDictionary value for VLCMediaTracksInformationType
  351. */
  352. extern NSString *const VLCMediaTracksInformationTypeVideo;
  353. /**
  354. * text / subtitles track information NSDictionary value for VLCMediaTracksInformationType
  355. */
  356. extern NSString *const VLCMediaTracksInformationTypeText;
  357. /**
  358. * unknown track information NSDictionary value for VLCMediaTracksInformationType
  359. */
  360. extern NSString *const VLCMediaTracksInformationTypeUnknown;
  361. /**
  362. * Returns the tracks information.
  363. *
  364. * This is an array of NSDictionary representing each track.
  365. * It can contain the following keys:
  366. *
  367. * \see VLCMediaTracksInformationCodec
  368. * \see VLCMediaTracksInformationId
  369. * \see VLCMediaTracksInformationType
  370. *
  371. * \see VLCMediaTracksInformationCodecProfile
  372. * \see VLCMediaTracksInformationCodecLevel
  373. *
  374. * \see VLCMediaTracksInformationBitrate
  375. * \see VLCMediaTracksInformationLanguage
  376. * \see VLCMediaTracksInformationDescription
  377. *
  378. * \see VLCMediaTracksInformationAudioChannelsNumber
  379. * \see VLCMediaTracksInformationAudioRate
  380. *
  381. * \see VLCMediaTracksInformationVideoHeight
  382. * \see VLCMediaTracksInformationVideoWidth
  383. *
  384. * \see VLCMediaTracksInformationSourceAspectRatio
  385. * \see VLCMediaTracksInformationSourceAspectDenominator
  386. *
  387. * \see VLCMediaTracksInformationFrameRate
  388. * \see VLCMediaTracksInformationFrameRateDenominator
  389. *
  390. * \see VLCMediaTracksInformationTextEncoding
  391. */
  392. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *tracksInformation;
  393. /**
  394. * Start asynchronously to parse the media.
  395. * This will attempt to fetch the meta data and tracks information.
  396. *
  397. * This is automatically done when an accessor requiring parsing
  398. * is called.
  399. *
  400. * \see -[VLCMediaDelegate mediaDidFinishParsing:]
  401. * \deprecated Use parseWithOptions: instead
  402. */
  403. - (void)parse __attribute__((deprecated));
  404. /**
  405. * Trigger a synchronous parsing of the media
  406. * the selector won't return until parsing finished
  407. *
  408. * \deprecated Use parseWithOptions: instead
  409. */
  410. - (void)synchronousParse __attribute__((deprecated));
  411. enum {
  412. VLCMediaParseLocal = 0x00,
  413. VLCMediaParseNetwork = 0x01,
  414. VLCMediaFetchLocal = 0x02,
  415. VLCMediaFetchNetwork = 0x04,
  416. };
  417. /**
  418. * enum of available options for use with parseWithOptions
  419. * \note you may pipe multiple values for the single parameter
  420. */
  421. typedef int VLCMediaParsingOptions;
  422. /**
  423. * triggers an asynchronous parse of the media item
  424. * using the given options
  425. * \param options the option mask based on VLCMediaParsingOptions
  426. * \see VLCMediaParsingOptions
  427. * \return an int. 0 on success, -1 in case of error
  428. * \note listen to the "parsed" key value or the mediaDidFinishParsing:
  429. * delegate method to be notified about parsing results. Those triggers
  430. * will _NOT_ be raised if parsing fails and this method returns an error.
  431. */
  432. - (int)parseWithOptions:(VLCMediaParsingOptions)options;
  433. /**
  434. * triggers an asynchronous parse of the media item
  435. * using the given options
  436. * \param options the option mask based on VLCMediaParsingOptions
  437. * \param timeoutValue a time-out value in milliseconds (-1 for default, 0 for infinite)
  438. * \see VLCMediaParsingOptions
  439. * \return an int. 0 on success, -1 in case of error
  440. * \note listen to the "parsed" key value or the mediaDidFinishParsing:
  441. * delegate method to be notified about parsing results. Those triggers
  442. * will _NOT_ be raised if parsing fails and this method returns an error.
  443. */
  444. - (int)parseWithOptions:(VLCMediaParsingOptions)options timeout:(int)timeoutValue;
  445. /**
  446. * Add options to the media, that will be used to determine how
  447. * VLCMediaPlayer will read the media. This allow to use VLC advanced
  448. * reading/streaming options in a per-media basis
  449. *
  450. * The options are detailed in vlc --long-help, for instance "--sout-all"
  451. * And on the web: http://wiki.videolan.org/VLC_command-line_help
  452. */
  453. - (void)addOptions:(NSDictionary*)options;
  454. /**
  455. * Parse a value of an incoming Set-Cookie header (see RFC 6265) and append the
  456. * cookie to the stored cookies if appropriate. The "secure" attribute can be added
  457. * to cookie to limit the scope of the cookie to secured channels (https).
  458. *
  459. * \note must be called before the first call of play() to
  460. * take effect. The cookie storage is only used for http/https.
  461. * \warning This method will never succeed on macOS, but requires iOS or tvOS
  462. *
  463. * \param cookie header field value of Set-Cookie: "name=value<;attributes>"
  464. * \param host host to which the cookie will be sent
  465. * \param path scope of the cookie
  466. *
  467. * \return 0 on success, -1 on error.
  468. */
  469. - (int)storeCookie:(NSString * _Nonnull)cookie
  470. forHost:(NSString * _Nonnull)host
  471. path:(NSString * _Nonnull)path;
  472. /**
  473. * Clear the stored cookies of a media.
  474. *
  475. * \note must be called before the first call of play() to
  476. * take effect. The cookie jar is only used for http/https.
  477. * \warning This method will never succeed on macOS, but requires iOS or tvOS
  478. */
  479. - (void)clearStoredCookies;
  480. /**
  481. * Getter for statistics information
  482. * Returns a NSDictionary with NSNumbers for values.
  483. *
  484. */
  485. @property (NS_NONATOMIC_IOSONLY, readonly, copy, nullable) NSDictionary *stats;
  486. #pragma mark - individual stats
  487. /**
  488. * returns the number of bytes read by the current input module
  489. * \return a NSInteger with the raw number of bytes
  490. */
  491. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfReadBytesOnInput;
  492. /**
  493. * returns the current input bitrate. may be 0 if the buffer is full
  494. * \return a float of the current input bitrate
  495. */
  496. @property (NS_NONATOMIC_IOSONLY, readonly) float inputBitrate;
  497. /**
  498. * returns the number of bytes read by the current demux module
  499. * \return a NSInteger with the raw number of bytes
  500. */
  501. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfReadBytesOnDemux;
  502. /**
  503. * returns the current demux bitrate. may be 0 if the buffer is empty
  504. * \return a float of the current demux bitrate
  505. */
  506. @property (NS_NONATOMIC_IOSONLY, readonly) float demuxBitrate;
  507. /**
  508. * returns the total number of decoded video blocks in the current media session
  509. * \return a NSInteger with the total number of decoded blocks
  510. */
  511. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDecodedVideoBlocks;
  512. /**
  513. * returns the total number of decoded audio blocks in the current media session
  514. * \return a NSInteger with the total number of decoded blocks
  515. */
  516. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDecodedAudioBlocks;
  517. /**
  518. * returns the total number of displayed pictures during the current media session
  519. * \return a NSInteger with the total number of displayed pictures
  520. */
  521. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDisplayedPictures;
  522. /**
  523. * returns the total number of pictures lost during the current media session
  524. * \return a NSInteger with the total number of lost pictures
  525. */
  526. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfLostPictures;
  527. /**
  528. * returns the total number of played audio buffers during the current media session
  529. * \return a NSInteger with the total number of played audio buffers
  530. */
  531. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfPlayedAudioBuffers;
  532. /**
  533. * returns the total number of audio buffers lost during the current media session
  534. * \return a NSInteger with the total number of displayed pictures
  535. */
  536. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfLostAudioBuffers;
  537. /**
  538. * returns the total number of packets sent during the current media session
  539. * \return a NSInteger with the total number of sent packets
  540. */
  541. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfSentPackets;
  542. /**
  543. * returns the total number of raw bytes sent during the current media session
  544. * \return a NSInteger with the total number of sent bytes
  545. */
  546. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfSentBytes;
  547. /**
  548. * returns the current bitrate of sent bytes
  549. * \return a float of the current bitrate of sent bits
  550. */
  551. @property (NS_NONATOMIC_IOSONLY, readonly) float streamOutputBitrate;
  552. /**
  553. * returns the total number of corrupted data packets during current sout session
  554. * \note value is 0 on non-stream-output operations
  555. * \return a NSInteger with the total number of corrupted data packets
  556. */
  557. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfCorruptedDataPackets;
  558. /**
  559. * returns the total number of discontinuties during current sout session
  560. * \note value is 0 on non-stream-output operations
  561. * \return a NSInteger with the total number of discontinuties
  562. */
  563. @property (NS_NONATOMIC_IOSONLY, readonly) NSInteger numberOfDiscontinuties;
  564. @end
  565. NS_ASSUME_NONNULL_END