125 int milliseconds,
int millisecondsMax);
141 const char* viewerId,
const char* viewerName,
const char* viewerAvatar,
142 const char* viewerExtraInfo1 = NULL,
const char* viewerExtraInfo2 = NULL,
const char* viewerExtraInfo3 = NULL);
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkKeepLastFrame(bool enable)
end video will keep in last frame.
PLAYERSDK_API int PLAYERSDK_CALL PLVDeleteLocalVideoFile(const char *vid, const char *path, int rate)
delete local video file.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogLevel(LOG_FILTER_TYPE level)
set the sdk log filter level.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkSeed(const char *seed)
set decryption seed, only used in vod.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogMessageCallback(bool enable, OnLogMessageHandler handler, void *data)
for log message callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkRetryAttempts(int attempts, int milliseconds, int millisecondsMax)
download retry count, default unlimit retry
PLAYERSDK_API void PLAYERSDK_CALL PLVReleaseSdkLibrary(void)
release sdk.
PLAYERSDK_API bool PLAYERSDK_CALL PLVCheckFileComplete(const char *vid, const char *videoFilePath, int rate)
check the video is completed.
PLAYERSDK_API int PLAYERSDK_CALL PLVInitSdkLibrary(const PLVAccountInfo *info)
init the sdk.
PLAYERSDK_API int PLAYERSDK_CALL PLVGetAudioDeviceCount()
get audio device count.
PLAYERSDK_API const char *PLAYERSDK_CALL PLVGetSdkVersion(void)
get the sdk version.
PLAYERSDK_API const char *PLAYERSDK_CALL PLVGetSdkErrorDescription(int err)
get the code description.
void(* OnLogMessageHandler)(LOG_FILTER_TYPE level, const char *message, void *data)
log message callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkVideoOutputDevice(VIDEO_OUTPUT_DEVICE type, const char *context=NULL)
Video output drivers are interfaces to different video output facilities. If there is no video proble...
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLocalRememberPlay(bool enable)
Set the last playback position for playback.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogFile(const char *fileName)
set the sdk log file.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHwdecEnable(bool enable)
Hardware coding.
PLAYERSDK_API int PLAYERSDK_CALL PLVGetAudioDeviceInfo(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 PLVSetSdkViewerInfo(const char *viewerId, const char *viewerName, const char *viewerAvatar, const char *viewerExtraInfo1=NULL, const char *viewerExtraInfo2=NULL, const char *viewerExtraInfo3=NULL)
this api will use report qos, recommended settings.
void(* OnDetectHardwareRecordingHandler)(DEVICE_CHANGED_TYPE type, const char *device, void *data)
for detect device recording callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVDetectVM()
for detect virtual machine environment.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetDetectHardwareRecordingHandler(bool enable, OnDetectHardwareRecordingHandler handler, void *data)
for detect device changed callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetPreventSoftwareRecording(void *window, bool enable)
for prevent screen recording or screenshot.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetDetectSoftwareRecordingHandler(bool enable, OnDetectSoftwareRecordingHandler handler, void *data)
for detect software recording your screen or window.
PLAYERSDK_API int PLAYERSDK_CALL PLVGetPreventSoftwareRecording(void *window, bool *enable)
for prevent screen recording or screenshot.
void(* OnDetectSoftwareRecordingHandler)(SOFTWARE_RECORDING_NOTIFY_TYPE type, const char *softwares, void *data)
for detect softward recording callback.
SOFTWARE_RECORDING_NOTIFY_TYPE
const int PLV_MAX_DEVICE_ID_LENGTH