OTVAVPlayerItem


@interface OTVAVPlayerItem : AVPlayerItem

OTVAVPlayerItem is derived from AVPlayerItem, please refer to apple’s documentation for further information.

  • The content of HLS playlist. It’s a key path can be observed.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nonnull metadata;
  • Creates an instance of OTVAVPlayerItem. \param asset an instance of OTVAVURLAsset

    \param automaticallyLoadedAssetKeys An array of strings, each representing a property defined by AVAsset

    Creates an instance of OTVAVPlayerItem. \param asset an AVAsset, Must be OTVAVURLAsset, otherwise get fatalError

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAsset:(AVAsset *_Nonnull)asset;
  • Creates an instance of OTVAVPlayerItem. \param URL a URL.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithURL:(NSURL *_Nonnull)URL;