Controls your region selection for all libraries from Brightcove. More...
#import <BCConfigManager.h>
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. |
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.
// 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
- (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.