#import <VOCommonPlayerControl.h>
- (id<VOOSMPImageData> VOCommonPlayerControl) captureVideoImage |
|
|
|
Capture a video image, only supported by VO_OSMP_VOME2_PLAYER.
This feature is currently disabled.
- Returns
- video image data
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) close |
|
|
|
Close a media source.
Framework is still available.
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) destroy |
|
|
|
Delete the player instance at the engine level.
You are required to perform the specific behavior as needed to release the objective-C memory occupied by the player instance.
VO_OSMP_ERR_NONE if successful.
- (id VOCommonPlayerControl) init: |
|
(VO_OSMP_PLAYER_ENGINE) |
playEngineType |
initParam: |
|
(VOOSMPInitParam *) |
initParam |
|
|
| |
Initialize a player instance.
This function must be called first to start a session.
- Parameters
-
- Returns
- player object if successful; nil if unsuccessful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) mute |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) notifyViewSizeChanged |
|
|
|
Notify the player that the view size has been changed.
This API should be called when the change of view size is done.
- Returns
- VO_OSMP_ERR_NONE if successful.
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) open: |
|
(NSString *) |
url |
flag: |
|
(VO_OSMP_SRC_FLAG) |
flag |
sourceType: |
|
(VO_OSMP_SRC_FORMAT) |
sourceType |
openParam: |
|
(VOOSMPOpenParam *) |
openParam |
|
|
| |
Open a media source.
- Parameters
-
url | [in] Source file description (for example, an URL or a file descriptor, etc.) |
flag | [in] The flag for opening media source. Refer to VO_OSMP_SRC_FLAG. |
sourceType | [in] Indicates the source format. Refer to VO_OSMP_SRC_FORMAT. Default value is VO_OSMP_SRC_AUTO_DETECT |
openParam | [in] Parameters for opening a source. Refer to VOOSMPOpenParam. Valid fields depend on the value. |
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) openSource: |
|
(void *) |
source |
flag: |
|
(VO_OSMP_SRC_FLAG) |
flag |
|
|
| |
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) pause |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) redrawVideo |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) resume |
|
|
|
Resume the player.
The application layer should invoke this method on receiving notification when moving to foreground.
- Returns
- VO_OSMP_ERR_NONE if successful; error code if unsuccessful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setDisplayArea: |
|
(Rect) |
rect |
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setOnEventDelegate: |
|
(id< VOCommonPlayerDelegate >) |
delegate |
|
- (long VOCommonPlayerControl) setPosition: |
|
(long) |
msec |
|
Perform the seek operation.
For VOD and NTS streams, the seek operation cannot be performed until the player open completes. For live stream, the seek operation cannot be performed until the player gets the VO_OSMP_SRC_ADAPTIVE_STREAMING_INFO_EVENT_LIVESEEKABLE callback event.
- Parameters
-
msec | [in] Requested seek position <ms>. |
- Returns
- position after seek operation; -1 if unsuccessful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setPreference: |
|
(VO_OSMP_PREFERENCE) |
preference |
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setScreenBrightness: |
|
(int) |
brightness |
|
Set screen display brightness.
- Parameters
-
brightness | [in] Display brightness (percent). The valid range is 0 to 100 |
- Returns
- VO_OSMP_ERR_NONE if successful
- (long long VOCommonPlayerControl) setUTCPosition: |
|
(long long) |
msec |
|
Seek by UTC time.
- Parameters
-
msec | [in] the requested seek position (ms). |
- Returns
- Position after seek operation; -1 if seek failed.
- Deprecated:
- This method will be removed in the future.
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setVideoAspectRatio: |
|
(VO_OSMP_ASPECT_RATIO) |
ar |
|
Set aspect ratio of video.
- Parameters
-
- Returns
- VO_OSMP_ERR_NONE if successful; error code if unsuccessful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setView: |
|
(void *) |
view |
|
Set surface view for video playback.
Ensure that this API is called after calling VOCommonPlayerControl#init.
It is NOT recommended to change the UIView(iOS)/CALayer(Mac OS) or its parent node during playback. If changing the UIView(iOS)/CALayer(Mac OS) or its parent node is needed during playback, it is recommended to perform the following steps:
-
Call VOCommonPlayerControl#suspend at first.
-
Change the UIView(iOS)/CALayer(Mac OS) or its parent node. Ensure that the change operation is completed before proceeding with next step.
-
Call VOCommonPlayerControl#resume with the new UIView(iOS)/CALayer(Mac OS).
- Parameters
-
view | [in] The UIView(iOS)/CALayer(Mac OS) to render video. Do not add other sub views in this view. |
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) setVolume: |
|
(float) |
value |
|
Set playback volume.
- Parameters
-
value | [in] A value of 0.0f indicates silence; a value of 1.0f indicates no attenuation. |
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) start |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) startAnalyticsNotification: |
|
(int) |
interval |
filter: |
|
(VOOSMPAnalyticsFilter *) |
filter |
|
|
| |
Start periodic analytics data notifications.
With each notification, analytics data of past "interval" ms is provided.
- Parameters
-
interval | [in] Time interval <ms> between two analytics data notifications. |
filter | [in] Filters, specified as an VOOSMPAnalyticsFilter object, to be applied to cached analytic data. |
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) startSEINotification: |
|
(int) |
interval |
|
Start periodic SEI data notifications.
- Parameters
-
interval | [in] Time interval <ms> between two SEI data notifications. |
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) stop |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) stopAnalyticsNotification |
|
|
|
Stop periodic analytics data notifications.
- Returns
- VO_OSMP_ERR_NONE if successful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) stopSEINotification |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) suspend: |
|
(bool) |
keepAudio |
|
Suspend the player.
The application layer should invoke this method on receiving notification when moving to background.
- Parameters
-
keepAudio | [in] Keep/pause audio. true for continuing to play audio, false to pause both video and audio. |
- Returns
- VO_OSMP_ERR_NONE if successful; error code if unsuccessful
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) unmute |
|
|
|
- (VO_OSMP_RETURN_CODE VOCommonPlayerControl) updateSourceURL: |
|
(NSString *) |
url |
|
Update a media source.
- Parameters
-
url | [in] Source file description (for example, an URL or a file descriptor, etc.) |
- Returns
- VO_OSMP_ERR_NONE if successful
The documentation for this protocol was generated from the following file: