BCConfigManager Class Reference

Controls your region selection for all libraries from Brightcove. More...

#import <BCConfigManager.h>

List of all members.

Static Public Member Functions

(BCConfigManager *) + sharedInstance

Properties

BCRegion region
 Used to target different end points and tracking urls.
BOOL logging
 Turns on call, response, bit-rate selection logging to the console.

Detailed Description

Controls your region selection for all libraries from Brightcove.

The BCConfigManager class controls your region selection for all libraries from Brightcove. This changes the end point for api calls (api.brightcove.com and api.brightcove.co.jp) and tracking urls also go the the correct region.

Code

 // Don't forget to include this line in your source:
 #import "BCConfigManager.h"
 
 [[BCConfigManager sharedInstance] setRegion:BCRegionJP];
 
 BCMediaAPI *api = [[BCMediaAPI alloc] initWithReadToken:APIToken];
 NSError *e;
 self.video = [api findVideoById:self.vId error:&e]; // makes a call to api.brightcove.co.jp

Property Documentation

- (BOOL) logging [read, write, assign]

Turns on call, response, bit-rate selection logging to the console.

The data being sent to the server, the raw response and the rendition the player has selected are logged to the console. Turn this setting off for release builds.

- (BCRegion) region [read, write, assign]

Used to target different end points and tracking urls.

Developers deploying apps that work with content from a JP region account can use this setting to target .co.jp urls. The default is .com urls BCRegionUS.


The documentation for this class was generated from the following files:

© 2009 Brightcove, Inc., All Rights Reserved