RBSDKRhinobirdPlayerViewController
@interface RBSDKRhinobirdPlayerViewController : RBSDKPlayerViewController
RBSDKRhinobirdPlayerViewController
is the player controller for Rhinobird.
-
Creates an instance of a Rhinobird player controller with a Reel id provided by the dashboard.
Declaration
Objective-C
- (nonnull instancetype)initWithReelId:(nonnull NSString *)reelId options:(RBSDKPlayerOption)options delegate:(nonnull id)delegate;
Swift
init(reelId: String, options: RBSDKPlayerOption, delegate: Any)
Parameters
reelId
Reel id.
options
RBSDKPlayerOption configuration.
delegate
Controller delegate.
Return Value
An instance of
RBSDKPlayerViewController
with a Reel. -
Creates an instance of a Rhinobird player controller with a Reel id provided by the dashboard.
Declaration
Objective-C
- (nonnull instancetype)initWithReelId:(nonnull NSString *)reelId startStreamAtPosition:(nonnull NSString *)startStreamAtPosition options:(RBSDKPlayerOption)options delegate:(nonnull id)delegate;
Swift
init(reelId: String, startStreamAtPosition: String, options: RBSDKPlayerOption, delegate: Any)
Parameters
reelId
Reel id.
startStreamAtPosition
Position order of the stream to start the reel.
options
RBSDKPlayerOption configuration.
delegate
Controller delegate.
Return Value
An instance of
RBSDKPlayerViewController
with a Reel. -
Inserts a Reel (by it’s id) to the player controller (vertically added).
Note
There isn’t a limit on the amount of reels that you can add.
Declaration
Objective-C
- (void)addReelId:(nonnull NSString *)reelId;
Swift
func addReelId(_ reelId: String)
Parameters
reelId
Reel id.
-
Creates an instance of a Rhinobird player controller with a collection id provided by the dashboard.
Declaration
Objective-C
- (nonnull instancetype)initWithCollectionId:(nonnull NSString *)collectionId options:(RBSDKPlayerOption)options delegate:(nonnull id)delegate;
Swift
init(collectionId: String, options: RBSDKPlayerOption, delegate: Any)
Parameters
collectionId
collection id.
options
RBSDKPlayerOption configuration.
delegate
Controller delegate.
Return Value
An instance of
RBSDKPlayerViewController
with a Collection.