13 #import <Foundation/Foundation.h> 15 #import "VOOSMPType.h" 17 @protocol VOOSMPAssetIndex <NSObject>
24 @property (readonly, assign, getter=getVideoIndex)
int videoIndex;
29 @property (readonly, assign, getter=getAudioIndex)
int audioIndex;
34 @property (readonly, assign, getter=getSubtitleIndex)
int subtitleIndex;
39 @protocol VOOSMPAssetProperty <NSObject>
46 - (int) getPropertyCount;
63 - (NSString*) getKey:(
int)index;
72 - (id) getValue:(
int)index;
79 const static int VO_OSMP_ASSET_AUTO_SELECTED = -1;
84 const static int VO_OSMP_ASSET_NOT_SELECTED = -2;
87 @protocol VOCommonPlayerAssetSelection <NSObject>
99 - (int) getVideoCount;
113 - (int) getAudioCount;
121 - (int) getSubtitleCount;
134 - (VO_OSMP_RETURN_CODE) selectVideo:(
int)index;
146 - (VO_OSMP_RETURN_CODE) selectAudio:(
int)index;
158 - (VO_OSMP_RETURN_CODE) selectSubtitle:(
int)index;
170 - (bool) isVideoAvailable:(
int)index;
182 - (bool) isAudioAvailable:(
int)index;
194 - (bool) isSubtitleAvailable:(
int)index;
203 - (VO_OSMP_RETURN_CODE) commitSelection;
211 - (VO_OSMP_RETURN_CODE) clearSelection;
229 - (id<VOOSMPAssetProperty>) getVideoProperty:(
int)index;
247 - (id<VOOSMPAssetProperty>) getAudioProperty:(
int)index;
264 - (id<VOOSMPAssetProperty>) getSubtitleProperty:(
int)index;
275 - (id<VOOSMPAssetIndex>) getPlayingAsset;
287 - (id<VOOSMPAssetIndex>) getCurrentSelection;
301 - (VO_OSMP_RETURN_CODE) setDefaultAudioLanguage:(NSString*)type;
315 - (VO_OSMP_RETURN_CODE) setDefaultSubtitleLanguage:(NSString*)type;
326 - (VO_OSMP_RETURN_CODE) setPreferredAudioLanguage:(NSArray*)languageList;
336 - (VO_OSMP_RETURN_CODE) setPreferredSubtitleLanguage:(NSArray*)languageList;