BCOVVideo Class Reference

Inherits from NSObject
Conforms to BCOVVideo
NSCopying
Declared in BCOVVideo.h

Overview

Implementation of the BCOVVideo protocol.

  canBeDownloaded

Returns YES if this video object can be downloaded for offline playback

@property (nonatomic, readonly) BOOL canBeDownloaded

Discussion

Returns YES if this video object can be downloaded for offline playback

Declared In

BCOVVideo.h

  usesFairPlay

Returns YES if this video object has a source using FairPlay encryption This applies to videos retrieved from Dynamic Delivery accounts only.

@property (nonatomic, readonly) BOOL usesFairPlay

Discussion

Returns YES if this video object has a source using FairPlay encryption This applies to videos retrieved from Dynamic Delivery accounts only.

Declared In

BCOVVideo.h

  offline

Returns YES if this instance refers to an offline video. Use the playableOffline property to determine if the video is playable offline.

@property (nonatomic, readonly) BOOL offline

Discussion

Returns YES if this instance refers to an offline video. Use the playableOffline property to determine if the video is playable offline.

Declared In

BCOVVideo.h

  playableOffline

Determines if a complete rendition of an AVAsset is available to be played without a network connection.

@property (nonatomic, readonly) BOOL playableOffline

Return Value

Returns YES if this instance refers to an offline video playable from the device’s local storage without a network connection.

Returns NO if the video has not completed downloading, or if the video has been purged and needs to be re-downloaded. This happens automatically if iOS needs to reclaim storage space for proper functioning of the device.

Discussion

Query this property before presenting or attempting to play an offline asset to determine if it’s available for use. A return value of true indicates a complete rendition of this asset is available for offline playback.

Reading this property is equivalent to reading the playableOffline property of the AVAssetCache of an AVAsset.

Declared In

BCOVVideo.h

– initWithSources:cuePoints:properties:

Constructs a new video with the specified sources, cue points, and properties.

- (instancetype)initWithSources:(NSArray *)sources cuePoints:(BCOVCuePointCollection *)cuePoints properties:(NSDictionary *)properties

Parameters

sources

The sources of this video.

cuePoints

The cue points associated to this video.

properties

The metadata or properties associated to this video.

Return Value

A new video with the specified sources, cue points, and properties.

Declared In

BCOVVideo.h

– initWithSource:cuePoints:properties:

Constructs a new video with a single specified source, the specified cue points, and the specified properties.

- (instancetype)initWithSource:(BCOVSource *)source cuePoints:(BCOVCuePointCollection *)cuePoints properties:(NSDictionary *)properties

Parameters

source

The sole source of this video.

cuePoints

The cue points associated to this video.

properties

The metadata or properties associated to this video.

Return Value

A new video with a single source, as well as the specified cue points and properties.

Discussion

Constructs a new video with a single specified source, the specified cue points, and the specified properties.

Declared In

BCOVVideo.h

– isEqualToVideo:

Returns YES if video is equivalent to this instance.

- (BOOL)isEqualToVideo:(BCOVVideo *)video

Parameters

video

The video to test for equivalence with this instance.

Return Value

Whether video is equivalent to this instance.

Discussion

Returns YES if video is equivalent to this instance.

Declared In

BCOVVideo.h

+ videoWithURL:

Returns a new video with a single source containing the specified URL.

+ (BCOVVideo *)videoWithURL:(NSURL *)url

Parameters

url

The URL of the source to be created and associated to the new video.

Return Value

A new video with a source containing the specified URL.

Discussion

Returns a new video with a single source containing the specified URL.

Declared In

BCOVVideo.h

+ videoWithHLSSourceURL:

Returns a new video with a single source containing the specified URL and a delivery method as kBCOVSourceDeliveryHLS.

+ (BCOVVideo *)videoWithHLSSourceURL:(NSURL *)url

Parameters

url

The URL of the source to be created and associated to the new video.

Return Value

A new video with a source containing the specified URL.

Discussion

Returns a new video with a single source containing the specified URL and a delivery method as kBCOVSourceDeliveryHLS.

Declared In

BCOVVideo.h

+ videoWithURL:deliveryMethod:

Returns a new video with a single source containing the specified URL.

+ (BCOVVideo *)videoWithURL:(NSURL *)url deliveryMethod:(NSString *)deliveryMethod

Parameters

url

The URL of the source to be created and associated to the new video.

deliveryMethod

The delivery method for this source. See BCOVSource for options.

Return Value

A new video with a source containing the specified URL.

Discussion

Returns a new video with a single source containing the specified URL.

Declared In

BCOVVideo.h