BCOVPlaybackServiceRequestFactory Class Reference

Inherits from NSObject
Declared in BCOVPlaybackServiceRequestFactory.h

Overview

The BCOVPlaybackServiceRequestFactory class provides methods for creating requests for videos from Brightcove’s Playback API.

  accountId

Videocloud Account Id.

@property (nonatomic, copy, readonly) NSString *accountId

Discussion

Videocloud Account Id.

Declared In

BCOVPlaybackServiceRequestFactory.h

  additionalHTTPRequestHeaders

NSDictionary of additional HTTP request headers set on each NSURLRequest. The dictionary key defines the header field name. Header field names are case-insensitive. Both keys and values should be NSStrings. Defaults to nil.

@property (nonatomic, copy, readwrite) NSDictionary *additionalHTTPRequestHeaders

Discussion

NSDictionary of additional HTTP request headers set on each NSURLRequest. The dictionary key defines the header field name. Header field names are case-insensitive. Both keys and values should be NSStrings. Defaults to nil.

Declared In

BCOVPlaybackServiceRequestFactory.h

– initWithAccountId:policyKey:

Returns an initialized instance with the specified policy. The base URL string used by the returned instance is https://edge.api.brightcove.com/playback/v1 .

- (instancetype)initWithAccountId:(NSString *)accountId policyKey:(NSString *)policyKey

Parameters

accountId

A Video Cloud account. Must not be nil.

policyKey

A Video Cloud CMS policy. Must not be nil.

Return Value

The initialized BCOVPlaybackServiceRequestFactory.

Discussion

Returns an initialized instance with the specified policy. The base URL string used by the returned instance is https://edge.api.brightcove.com/playback/v1 .

Declared In

BCOVPlaybackServiceRequestFactory.h

– initWithAccountId:policyKey:baseURLStr:

Returns an initialized instance with the specified token, account, and base URL string.

- (instancetype)initWithAccountId:(NSString *)accountId policyKey:(NSString *)policyKey baseURLStr:(NSString *)baseURLStr

Parameters

accountId

A Video Cloud account.

policyKey

A Video Cloud CMS policy.

baseURLStr

A string URL to the API.

Return Value

The initialized BCOVPlaybackServiceRequestFactory.

Discussion

Returns an initialized instance with the specified token, account, and base URL string.

Declared In

BCOVPlaybackServiceRequestFactory.h

– requestForPlaylistWithPlaylistID:parameters:

Constructs a request for a playlist by the playlist id.

- (NSURLRequest *)requestForPlaylistWithPlaylistID:(NSString *)playlistId parameters:(NSDictionary *)parameters

Parameters

playlistId

Id of the playlist to request.

parameters

parameters that will be added as URL parameters to the request. These parameters will override any default parameters that had been set.

Return Value

Built NSURLRequest that can be used to fetch the playlist.

Discussion

Constructs a request for a playlist by the playlist id.

Declared In

BCOVPlaybackServiceRequestFactory.h

– requestForPlaylistWithReferenceID:parameters:

Constructs a request for a playlist by the reference id.

- (NSURLRequest *)requestForPlaylistWithReferenceID:(NSString *)referenceId parameters:(NSDictionary *)parameters

Parameters

referenceId

Reference id of the playlist to request.

parameters

parameters that will be added as URL parameters to the request. These parameters will override any default parameters that had been set.

Return Value

Built NSURLRequest that can be used to fetch the playlist.

Discussion

Constructs a request for a playlist by the reference id.

Declared In

BCOVPlaybackServiceRequestFactory.h

– requestForVideoWithVideoID:parameters:

Constructs a request for a video by the video id.

- (NSURLRequest *)requestForVideoWithVideoID:(NSString *)videoId parameters:(NSDictionary *)parameters

Parameters

videoId

Id of the video to request.

parameters

parameters that will be added as URL parameters to the request. These parameters will override any default parameters that had been set.

Return Value

Built NSURLRequest that can be used to fetch the video.

Discussion

Constructs a request for a video by the video id.

Declared In

BCOVPlaybackServiceRequestFactory.h

– requestForVideoWithReferenceID:parameters:

Constructs a request for a video by the reference id.

- (NSURLRequest *)requestForVideoWithReferenceID:(NSString *)referenceId parameters:(NSDictionary *)parameters

Parameters

referenceId

Reference id of the video to request.

parameters

parameters that will be added as URL parameters to the request. These parameters will override any default parameters that had been set.

Return Value

Built NSURLRequest that can be used to fetch the video.

Discussion

Constructs a request for a video by the reference id.

Declared In

BCOVPlaybackServiceRequestFactory.h