<OOPlaybackSpeedProtocol > Protocol Reference

#import <OOPlaybackSpeedProtocol.h>

+ Inheritance diagram for <OOPlaybackSpeedProtocol >:

Instance Methods

(void) - changePlaybackSpeedRate:
 Requests to change the current playback speed rate to the one provided as a parameter. More...
 

Properties

Float64 selectedPlaybackSpeedRate
 Gets the currently selected playback speed rate. More...
 
BOOL playbackSpeedEnabled
 Lets you know if the current video supporting playback speed. More...
 

Method Documentation

- (void OOPlaybackSpeedProtocol) changePlaybackSpeedRate: (Float64)  playbackSpeedRate

Requests to change the current playback speed rate to the one provided as a parameter.

Parameters
playbackSpeedRateto be used.

Property Documentation

- (BOOL OOPlaybackSpeedProtocol) playbackSpeedEnabled
readnonatomicassign

Lets you know if the current video supporting playback speed.

The following code snippet shows an example of this method. It assumes you are listening to the events of the OOOoyalaPlayer using notifications:

// assumes you are observing OOOoyalaPlayer notifications and you have a property
// like `@property OOOoyalaPlayer *player;`
if ([notification.name isEqualToString:OOOoyalaPlayerStateChangedNotification]) {
NSNumber *state = notification.userInfo[@"newState"];
if (state.intValue == OOOoyalaPlayerStateReady) {
NSLog(@"playback speed enabled: %d", self.player.isPlaybackSpeedEnabled);
}
}
Returns
YES if the asset isn't LIVE, AD OR VR. NO otherwise.
- (Float64 OOPlaybackSpeedProtocol) selectedPlaybackSpeedRate
readnonatomicassign

Gets the currently selected playback speed rate.

Returns
An Float64 value.

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