OOOoyalaPlayer(MultiAudio) Category Reference

#import <OOOoyalaPlayer+MultiAudio.h>

+ Inheritance diagram for OOOoyalaPlayer(MultiAudio):

Instance Methods

(BOOL) - hasMultipleAudioTracks
 Lets you know if the current video has multiple audio tracks. More...
 

Method Documentation

- (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:

// 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(@"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: