VOCommonPlayerControl.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 "VOCommonPlayerDelegate.h"
16 
17 #import "VOOSMPInitParam.h"
18 #import "VOOSMPOpenParam.h"
19 #import "VOOSMPType.h"
20 
21 @protocol VOCommonPlayerControl <NSObject>
22 
23 
24 #pragma mark Player initialization
25 
34 - (id) init:(VO_OSMP_PLAYER_ENGINE)playEngineType initParam:(VOOSMPInitParam *)initParam;
35 
49 - (VO_OSMP_RETURN_CODE) setView:(void*) view;
50 
51 
62 - (VO_OSMP_RETURN_CODE) setDisplayArea:(Rect)rect;
63 
64 
71 - (VO_OSMP_RETURN_CODE) notifyViewSizeChanged;
72 
73 
74 #pragma mark Data source initialization
75 
86 - (VO_OSMP_RETURN_CODE) open:(NSString *)url flag:(VO_OSMP_SRC_FLAG)flag sourceType:(VO_OSMP_SRC_FORMAT)sourceType openParam:(VOOSMPOpenParam *)openParam;
87 
88 
97 - (VO_OSMP_RETURN_CODE) openSource:(void *)source flag:(VO_OSMP_SRC_FLAG)flag;
98 
99 
105 - (VO_OSMP_RETURN_CODE) close;
106 
107 
108 #pragma mark Runtime control
109 
115 - (VO_OSMP_RETURN_CODE) start;
116 
117 
123 - (VO_OSMP_RETURN_CODE) pause;
124 
125 
131 - (VO_OSMP_RETURN_CODE) stop;
132 
133 
144 - (long) setPosition:(long)msec;
145 
146 
154 - (long long) setUTCPosition:(long long)msec;
155 
156 
164 - (VO_OSMP_RETURN_CODE) setVolume:(float)value;
165 
166 
172 - (VO_OSMP_RETURN_CODE) mute;
173 
174 
180 - (VO_OSMP_RETURN_CODE) unmute;
181 
182 
191 - (VO_OSMP_RETURN_CODE) suspend:(bool)keepAudio;
192 
193 
200 - (VO_OSMP_RETURN_CODE) resume;
201 
202 
210 - (VO_OSMP_RETURN_CODE) setVideoAspectRatio:(VO_OSMP_ASPECT_RATIO)ar;
211 
212 
218 - (VO_OSMP_RETURN_CODE) redrawVideo;
219 
220 
227 - (VO_OSMP_RETURN_CODE) setOnEventDelegate:(id <VOCommonPlayerDelegate>)delegate;
228 
229 
237 - (VO_OSMP_RETURN_CODE) setScreenBrightness:(int)brightness;
238 
239 
247 - (VO_OSMP_RETURN_CODE) startSEINotification:(int)interval;
248 
249 
255 - (VO_OSMP_RETURN_CODE) stopSEINotification;
256 
257 
263 - (id<VOOSMPImageData>) captureVideoImage;
264 
265 
276 - (VO_OSMP_RETURN_CODE) updateSourceURL:(NSString *)url;
277 
278 
287 - (VO_OSMP_RETURN_CODE) startAnalyticsNotification:(int)interval filter:(VOOSMPAnalyticsFilter *)filter;
288 
289 
295 - (VO_OSMP_RETURN_CODE) stopAnalyticsNotification;
296 
304 - (VO_OSMP_RETURN_CODE) setPreference:(VO_OSMP_PREFERENCE) preference;
305 
311 - (VO_OSMP_RETURN_CODE)destroy;
312 
313 
314 @end
315 
Definition: VOOSMPOpenParam.h:18
Definition: VOOSMPInitParam.h:17
Definition: VOOSMPAnalyticsFilter.h:17