OOOoyalaPlayer(Playback) Category Reference

#import <OOOoyalaPlayer+Playback.h>

Instance Methods

(Float64) - duration
 Gets the duration of the asset. More...
 
(double) - bitrate
 Get the current bitrate. More...
 
(BOOL) - isAuthTokenExpired
 Checks the expiration of the authToken, and compares it to the current time. More...
 
(CMTimeRange) - seekableTimeRange
 current seekable range for main video. More...
 
(BOOL) - isShowingAd
 Get whether the player is playing ad. More...
 
(BOOL) - isShowingAdWithCustomControls
 
(Float64) - playheadTime
 Gets the current playhead time (the part of the video currently being accessed). More...
 
(NSDate *) - liveTime
 Gets the (approximate) real time of a live stream. More...
 
(Float64) - bufferedTime
 Get the maximum buffered time. More...
 
(BOOL) - isPlaying
 Get whether the player is playing. More...
 
(NSSet *) - getCuePointsAtSecondsForCurrentPlayer
 Return a collection of the times at which to show cue points. More...
 
(void) - togglePictureInPictureMode
 Toggle the picture in picture mode iOS 9 and up only. More...
 
(void) - setPlayheadTime:
 Sets the current playhead time of the player (same as seek). More...
 
(void) - seek:
 Sets the current playhead time of the player (same as setPlayheadTime). More...
 
(void) - seekCompleted
 
(void) - pause
 Pauses the current video. More...
 
(void) - play
 Plays the current video. More...
 
(void) - playWithInitialTime:
 Plays the current video with an initial time. More...
 

Properties

BOOL pipActivated
 
BOOL audioOnly
 

Method Documentation

- (double) bitrate

Get the current bitrate.

Returns
a double indicating the current bitrate in bytes

Extends class OOOoyalaPlayer.

- (Float64) bufferedTime

Get the maximum buffered time.

Returns
the buffered time in seconds of the currently playing item

Extends class OOOoyalaPlayer.

- (Float64) duration

Gets the duration of the asset.

Returns
the duration of the currently playing asset, in seconds

Extends class OOOoyalaPlayer.

- (NSSet *) getCuePointsAtSecondsForCurrentPlayer

Return a collection of the times at which to show cue points.

E.g. for the content player, show when ads are scheduled to play.NSNumber int seconds>

Extends class OOOoyalaPlayer.

- (BOOL) isAuthTokenExpired

Checks the expiration of the authToken, and compares it to the current time.

Returns
YES if token is expired, NO otherwise

Extends class OOOoyalaPlayer.

- (BOOL) isPlaying

Get whether the player is playing.

Returns
a BOOL indicating the current player is playing

Extends class OOOoyalaPlayer.

- (BOOL) isShowingAd

Get whether the player is playing ad.

Returns
a BOOL indicating the current player is playing ad

Extends class OOOoyalaPlayer.

- (BOOL) isShowingAdWithCustomControls
Returns
YES if self.isShowingAd==YES and the ad player reports that it has custom controls, instead of using the Ooyala video controls.

Extends class OOOoyalaPlayer.

- (NSDate *) liveTime

Gets the (approximate) real time of a live stream.

Returns
currently playing time

Extends class OOOoyalaPlayer.

- (void) pause

Pauses the current video.

Extends class OOOoyalaPlayer.

- (void) play

Plays the current video.

Extends class OOOoyalaPlayer.

- (Float64) playheadTime

Gets the current playhead time (the part of the video currently being accessed).

Returns
the current playhead time, in milliseconds

Extends class OOOoyalaPlayer.

- (void) playWithInitialTime: (Float64)  time

Plays the current video with an initial time.

Extends class OOOoyalaPlayer.

- (void) seek: (Float64)  time

Sets the current playhead time of the player (same as setPlayheadTime).

Parameters
[in]timethe playhead time, in seconds

Extends class OOOoyalaPlayer.

- (CMTimeRange) seekableTimeRange

current seekable range for main video.

Extends class OOOoyalaPlayer.

- (void) seekCompleted

Extends class OOOoyalaPlayer.

- (void) setPlayheadTime: (Float64)  time

Sets the current playhead time of the player (same as seek).

For example, to start a video at the 30 second point, you would set the playhead to 30.

Parameters
[in]timethe playhead time, in seconds

Extends class OOOoyalaPlayer.

- (void) togglePictureInPictureMode

Toggle the picture in picture mode iOS 9 and up only.

Extends class OOOoyalaPlayer.

Property Documentation

- (BOOL) audioOnly
readnonatomicassign

Extends class OOOoyalaPlayer.

- (BOOL) pipActivated
readnonatomicassign

Extends class OOOoyalaPlayer.


The documentation for this category was generated from the following file: