#import <BCSharingViewController.h>
Protected Attributes | |
UINavigationController * | controller |
UIButton * | cancel |
Properties | |
id< BCSharingViewDelegate > | delegate |
An object that conforms to the BCSharingViewDelegate. | |
BCVideo * | video |
Video for sharing. | |
long long | sharingPlayerId |
PlayerId for sharing. |
The BCSharingViewController class provides an easy way to enable your users to email links to your videos and tweet links via twitter. To create an view to allow the user to email a link to your video, you must first create a web accessible player for email sharing on http://my.brightcove.com in your account. Your application will need to know the ID of this player, since the emails will direct users to the sharing player.
During the life cycle of the BCSharingViewController there will be delegate callbacks your code will need to responde to.
// Don't forget to include this line in your source: #import "BCSharingViewController.h" BCSharingViewController *bcsvc = [[BCSharingViewController alloc] init]; [bcsvc setVideo: self.video]; [bcsvc setSharingPlayerId: self.playerId]; [bcsvc setDelegate:self]; [self.view addSubview:bcsvc.view];
- (id< BCSharingViewDelegate >) delegate [read, write, assign] |
An object that conforms to the BCSharingViewDelegate.
This object handles callbacks from the BCSharingViewController. It also allows the developer to change how the BCSharingViewController behaves.
- (long long) sharingPlayerId [read, write, assign] |
PlayerId for sharing.
When sharing videos via email or twitter, a link is composed to a specific player capable of rendering that video in a web-based Brightcove player. This player is identified by this property.
- (BCVideo *) video [read, write, retain] |
Video for sharing.
When sharing videos via email or twitter, a link is composed to a specific player capable of rendering that video in a web-based Brightcove player. This BCVideo instance is used in that process.