VOCommonPlayerAssetSelection.h
1 /************************************************************************
2 VisualOn Proprietary
3 Copyright (c) 2012-2016, VisualOn, Inc. All Rights Reserved
4 
5 All data and information contained in or disclosed by this document are
6 confidential and proprietary information of VisualOn, Inc, and all rights
7 therein are expressly reserved. By accepting this material, the recipient
8 agrees that this material and the information contained therein are held
9 in confidence and in trust. The material may only be used and/or disclosed
10 as authorized in a license agreement controlling such use and disclosure.
11 ************************************************************************/
12 
13 #import <Foundation/Foundation.h>
14 
15 #import "VOOSMPType.h"
16 
17 @protocol VOOSMPAssetIndex <NSObject>
18 
24 @property (readonly, assign, getter=getVideoIndex) int videoIndex;
25 
29 @property (readonly, assign, getter=getAudioIndex) int audioIndex;
30 
34 @property (readonly, assign, getter=getSubtitleIndex) int subtitleIndex;
35 
36 @end
37 
38 
39 @protocol VOOSMPAssetProperty <NSObject>
40 
46 - (int) getPropertyCount;
47 
63 - (NSString*) getKey:(int)index;
64 
72 - (id) getValue:(int)index;
73 
74 @end
75 
79 const static int VO_OSMP_ASSET_AUTO_SELECTED = -1;
80 
84 const static int VO_OSMP_ASSET_NOT_SELECTED = -2;
85 
86 
87 @protocol VOCommonPlayerAssetSelection <NSObject>
88 
99 - (int) getVideoCount;
100 
101 
113 - (int) getAudioCount;
114 
115 
121 - (int) getSubtitleCount;
122 
123 
134 - (VO_OSMP_RETURN_CODE) selectVideo:(int)index;
135 
136 
146 - (VO_OSMP_RETURN_CODE) selectAudio:(int)index;
147 
148 
158 - (VO_OSMP_RETURN_CODE) selectSubtitle:(int)index;
159 
160 
170 - (bool) isVideoAvailable:(int)index;
171 
172 
182 - (bool) isAudioAvailable:(int)index;
183 
184 
194 - (bool) isSubtitleAvailable:(int)index;
195 
196 
203 - (VO_OSMP_RETURN_CODE) commitSelection;
204 
205 
211 - (VO_OSMP_RETURN_CODE) clearSelection;
212 
213 
229 - (id<VOOSMPAssetProperty>) getVideoProperty:(int)index;
230 
231 
247 - (id<VOOSMPAssetProperty>) getAudioProperty:(int)index;
248 
249 
264 - (id<VOOSMPAssetProperty>) getSubtitleProperty:(int)index;
265 
266 
275 - (id<VOOSMPAssetIndex>) getPlayingAsset;
276 
277 
287 - (id<VOOSMPAssetIndex>) getCurrentSelection;
288 
289 
301 - (VO_OSMP_RETURN_CODE) setDefaultAudioLanguage:(NSString*)type;
302 
303 
315 - (VO_OSMP_RETURN_CODE) setDefaultSubtitleLanguage:(NSString*)type;
316 
317 
326 - (VO_OSMP_RETURN_CODE) setPreferredAudioLanguage:(NSArray*)languageList;
327 
328 
336 - (VO_OSMP_RETURN_CODE) setPreferredSubtitleLanguage:(NSArray*)languageList;
337 
338 @end
339 
340