<OOPlaybackSpeedProtocol > Protocol Reference
#import <OOPlaybackSpeedProtocol.h>

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
-
playbackSpeedRate to be used.
Property Documentation
|
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.
|
readnonatomicassign |
Gets the currently selected playback speed rate.
- Returns
- An Float64 value.
The documentation for this protocol was generated from the following file: