|
plv player sdk doc
|
Typedefs | |
| typedef void(* | OnRequestVideoInfoHandler) (int code, const PLVVideoRequestInfo infos[], int infosNum, const PLVVideoRequestPageInfo *pageInfo, void *data) |
| request video info callback. | |
| typedef void(* | OnPlayerAudioDeviceHandler) (int audioDeviceCount, void *data) |
| the player audio device list change. | |
Functions | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVSetSdkHttpRequest (SDK_HTTP_REQUEST type) |
| for thd sdk http request type. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVSetSdkCacertFile (const char *fileName) |
| set upload ca file, if use https, must set the ca file, otherwise error. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVRequestVideoInfo (bool sync, const PLVVideoRequestParam *param, OnRequestVideoInfoHandler handler, void *data) |
| request video info. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVCancelRequestVideoInfo () |
| cancel request video info. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVMigrateLocalVideoKeyFile (const char *keyFilePath, const char *secretKey) |
| migrate old encryption key to use token encryption key. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVPlayerSetAudioDeviceHandler (PLVPlayerPtr player, OnPlayerAudioDeviceHandler handler, void *data) |
| for play audio device list callback. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVPlayerGetAudioDeviceCount (PLVPlayerPtr player) |
| get audio device count. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVPlayerGetAudioDeviceInfo (PLVPlayerPtr player, int index, char deviceId[PLV_MAX_DEVICE_ID_LENGTH], char deviceName[PLV_MAX_DEVICE_ID_LENGTH]) |
| the audio device info. | |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVPlayerReloadAudioDevice (PLVPlayerPtr player) |
| reload the audio device. | |
| typedef void(* OnPlayerAudioDeviceHandler) (int audioDeviceCount, void *data) |
the player audio device list change.
| [out] | audioDeviceCount | audio device count. |
| [out] | data | user context data. |
Definition at line 87 of file plv-player-deprecated.h.
| typedef void(* OnRequestVideoInfoHandler) (int code, const PLVVideoRequestInfo infos[], int infosNum, const PLVVideoRequestPageInfo *pageInfo, void *data) |
request video info callback.
| [out] | code | request result code |
| [out] | infos | video infos. |
| [out] | infosNum | video infos number. |
| [out] | pageInfo | page info, if user request in page. |
| [out] | data | user context. |
Definition at line 40 of file plv-player-deprecated.h.
| PLAYERSDK_API int PLAYERSDK_CALL PLVCancelRequestVideoInfo | ( | ) |
cancel request video info.
| PLAYERSDK_API int PLAYERSDK_CALL PLVMigrateLocalVideoKeyFile | ( | const char * | keyFilePath, |
| const char * | secretKey ) |
migrate old encryption key to use token encryption key.
| keyFilePath | key file path, use UTF8. |
| secretKey | old secret key. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceCount | ( | PLVPlayerPtr | player | ) |
get audio device count.
| player | the player object, for PLVPlayerCreate return. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceInfo | ( | PLVPlayerPtr | player, |
| int | index, | ||
| char | deviceId[PLV_MAX_DEVICE_ID_LENGTH], | ||
| char | deviceName[PLV_MAX_DEVICE_ID_LENGTH] ) |
the audio device info.
deprecated
| player | the player object, for PLVPlayerCreate return. |
| index | audio device index. | |
| [out] | deviceId | audio device id. |
| [out] | deviceName | audio device name. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerReloadAudioDevice | ( | PLVPlayerPtr | player | ) |
reload the audio device.
| player | the player object, for PLVPlayerCreate return. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioDeviceHandler | ( | PLVPlayerPtr | player, |
| OnPlayerAudioDeviceHandler | handler, | ||
| void * | data ) |
for play audio device list callback.
| player | the player object, for PLVPlayerCreate return. |
| handler | callback function. |
| data | user context data. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVRequestVideoInfo | ( | bool | sync, |
| const PLVVideoRequestParam * | param, | ||
| OnRequestVideoInfoHandler | handler, | ||
| void * | data ) |
request video info.
| sync | use sync or asynchronous. |
| param | request param. |
| handler | callback function. |
| data | user context. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkCacertFile | ( | const char * | fileName | ) |
set upload ca file, if use https, must set the ca file, otherwise error.
| fileName | the ca file,include path. use UTF8. |
| PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHttpRequest | ( | SDK_HTTP_REQUEST | type | ) |
for thd sdk http request type.
| type | http protocol first request type. |