#import <OOOoyalaPlayer+MultiAudio.h>
- (BOOL) hasMultipleAudioTracks |
|
|
|
Lets you know if the current video has multiple audio tracks.
It requires that a video has already loaded.
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(@"has audio tracks: %d", [self.player hasMultipleAudioTracks]);
}
}
- Returns
- true if there are more than one audio tracks, false otherwise.
Extends class OOOoyalaPlayer.
The documentation for this category was generated from the following file: