plv player sdk doc
Loading...
Searching...
No Matches
plv-player-deprecated.h
Go to the documentation of this file.
1#pragma once
2#include "plv-player-def.h"
3#include "plv-player-vod.h"
4
17PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHttpRequest(SDK_HTTP_REQUEST type);
18
29PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkCacertFile(const char *fileName);
30
40typedef void (*OnRequestVideoInfoHandler)(int code, const PLVVideoRequestInfo infos[], int infosNum,
41 const PLVVideoRequestPageInfo *pageInfo, void *data);
42
55PLAYERSDK_API int PLAYERSDK_CALL PLVRequestVideoInfo(bool sync, const PLVVideoRequestParam *param,
56 OnRequestVideoInfoHandler handler, void *data);
57
66PLAYERSDK_API int PLAYERSDK_CALL PLVCancelRequestVideoInfo();
67
79PLAYERSDK_API int PLAYERSDK_CALL PLVMigrateLocalVideoKeyFile(const char *keyFilePath, const char *secretKey);
80
87typedef void (*OnPlayerAudioDeviceHandler)(int audioDeviceCount, void *data);
88
99PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioDeviceHandler(PLVPlayerPtr player, OnPlayerAudioDeviceHandler handler, void *data);
100
108PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceCount(PLVPlayerPtr player);
109
121PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceInfo(PLVPlayerPtr player, int index,
122 char deviceId[PLV_MAX_DEVICE_ID_LENGTH],
123 char deviceName[PLV_MAX_DEVICE_ID_LENGTH]);
124
134PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerReloadAudioDevice(PLVPlayerPtr player);
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 PLVPlayerGetAudioDeviceCount(PLVPlayerPtr player)
get audio device count.
void(* OnPlayerAudioDeviceHandler)(int audioDeviceCount, void *data)
the player audio device list change.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHttpRequest(SDK_HTTP_REQUEST type)
for thd sdk http request type.
PLAYERSDK_API int PLAYERSDK_CALL PLVRequestVideoInfo(bool sync, const PLVVideoRequestParam *param, OnRequestVideoInfoHandler handler, void *data)
request video info.
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 PLVCancelRequestVideoInfo()
cancel request video info.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioDeviceHandler(PLVPlayerPtr player, OnPlayerAudioDeviceHandler handler, void *data)
for play audio device list callback.
void(* OnRequestVideoInfoHandler)(int code, const PLVVideoRequestInfo infos[], int infosNum, const PLVVideoRequestPageInfo *pageInfo, void *data)
request video info callback.
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 PLVPlayerReloadAudioDevice(PLVPlayerPtr player)
reload the audio device.
void * PLVPlayerPtr
VOD player object type.
const int PLV_MAX_DEVICE_ID_LENGTH
SDK_HTTP_REQUEST