BCOVFPSBrightcoveAuthProxy Class Reference

Inherits from NSObject
Conforms to BCOVFPSAuthorizationProxy
Declared in BCOVFPSBrightcoveAuthProxy.h

Overview

Class responsible for interacting with Brightcove FairPlay services.

  fpsBaseURL

The base url for FairPlay related license requests. The default URL points to fps.brightcove.com. If set to nil, the default NSURL pointing at fps.brightcove.com will be re-created.

@property (nonatomic, strong, null_resettable) NSURL *fpsBaseURL

Discussion

The base url for FairPlay related license requests. The default URL points to fps.brightcove.com. If set to nil, the default NSURL pointing at fps.brightcove.com will be re-created.

Declared In

BCOVFPSBrightcoveAuthProxy.h

  keyRequestURL

The key request URL for FairPlay related key requests. Normally set to nil, in which case the key request URL will be retrieved from the Video Cloud Playback API response.

@property (nonatomic, strong, nullable) NSURL *keyRequestURL

Discussion

The key request URL for FairPlay related key requests. Normally set to nil, in which case the key request URL will be retrieved from the Video Cloud Playback API response.

Declared In

BCOVFPSBrightcoveAuthProxy.h

  sharedURLSession

NSURLSession shared across all network calls to the BCOVFPSBrightcoveAuthProxy. This object is created when the Playback Service is initialized. If you wish to use your own NSURLSession you can set it here. If set to nil, the default NSURLSession will be re-created.

@property (nonatomic, strong, null_resettable) NSURLSession *sharedURLSession

Discussion

NSURLSession shared across all network calls to the BCOVFPSBrightcoveAuthProxy. This object is created when the Playback Service is initialized. If you wish to use your own NSURLSession you can set it here. If set to nil, the default NSURLSession will be re-created.

Declared In

BCOVFPSBrightcoveAuthProxy.h

– initWithPublisherId:applicationId:

Creates a BCOVFPSAuthorizationProxy to interacts with fps.brightcove.com.

- (nullable instancetype)initWithPublisherId:(nullable NSString *)pubId applicationId:(nullable NSString *)appId

Parameters

pubId

The publisher id. Must not be nil.

appId

The application id registered with fps.brightcove.com. May be nil if not using fps.brightcove.com.

Return Value

An initialized proxy.

Discussion

Creates a BCOVFPSAuthorizationProxy to interacts with fps.brightcove.com.

Declared In

BCOVFPSBrightcoveAuthProxy.h

– retrieveApplicationCertificate:

Retrieves the Application Certificate. This should be done as soon as possible and should be cached for no longer than 6 hours.

- (void)retrieveApplicationCertificate:(void ( ^ ) ( NSData *__nullable applicationCetificate , NSError *__nullable error ))completionHandler

Parameters

completionHandler

Executed when the request is completed. If applicationCetificate is nil, the error will be populated. The block will be executed on the main thread.

Discussion

Retrieves the Application Certificate. This should be done as soon as possible and should be cached for no longer than 6 hours.

Declared In

BCOVFPSBrightcoveAuthProxy.h