#import <OOPlaybackSpeedProtocol.h>
- (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. |
- (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:
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: