RBSDKPlayerViewController
@interface RBSDKPlayerViewController : UIViewController
RBSDKPlayerViewController is an abstract class, you’re not suposed to initialize
this object directly, use RBSDKRhinobirdPlayerViewController instead.
-
Player’s options
Declaration
Objective-C
@property (nonatomic) RBSDKPlayerOption options;Swift
var options: RBSDKPlayerOption { get set } -
Player view controller internal logic
Declaration
Objective-C
@property (nonatomic, strong, nullable) RBPlayerViewController *playerViewController;Swift
var playerViewController: RBPlayerViewController? { get set } -
Player’s delegate
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<RBSDKPlayerViewControllerDelegate> delegate;Swift
weak var delegate: RBSDKPlayerViewControllerDelegate? { get set } -
Current Vertical position at the player
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger verticalPosition;Swift
var verticalPosition: Int { get } -
Current Horizontal position at the player
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger horizontalPosition;Swift
var horizontalPosition: Int { get } -
Returns the media info of the current media showing
Declaration
Objective-C
@property (nonatomic, readonly, nullable) RBSDKPlayerMediaInfo *currentMediaInfo;Swift
var currentMediaInfo: RBSDKPlayerMediaInfo? { get }Return Value
RBSDKPlayerMediaInfo Media info
-
Set playback to YES (rate = 1.0) for the entire reel
Declaration
Objective-C
- (void)play;Swift
func play() -
Set playback to NO (rate = 0.0) for the entire reel
Declaration
Objective-C
- (void)pause;Swift
func pause() -
Returns the playing status of the player
Declaration
Objective-C
- (BOOL)isPlaying;Swift
func isPlaying() -> BoolReturn Value
BOOL YES if is playing
-
Returns the fullscreen status of the player.
Declaration
Objective-C
- (BOOL)isFullscreen;Swift
func isFullscreen() -> BoolReturn Value
BOOL YES if is fullscreen
-
Stops and removes the player controller.
Note
This method will be needed when Options contains RBSDKPlayerOptionManualTearDown to stop manually the player.Declaration
Objective-C
- (void)tearDown;Swift
func tearDown()
View on GitHub
RBSDKPlayerViewController Class Reference