plv player sdk doc
Loading...
Searching...
No Matches
plv-player-core.h
Go to the documentation of this file.
1#pragma once
2#include "plv-player-def.h"
3
5
13PLAYERSDK_API const char* PLAYERSDK_CALL PLVGetSdkVersion(void);
14
21PLAYERSDK_API const char* PLAYERSDK_CALL PLVGetSdkErrorDescription(int err);
22
34PLAYERSDK_API bool PLAYERSDK_CALL PLVCheckFileComplete(const char* vid,
35 const char* videoFilePath, int rate);
36
45PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogLevel(LOG_FILTER_TYPE level);
46
56PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogFile(const char* fileName);
57
64typedef void(*OnLogMessageHandler)(
65 LOG_FILTER_TYPE level, const char* message, void* data);
66
76PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogMessageCallback(bool enable,
77 OnLogMessageHandler handler, void* data);
78
88PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHttpRequest(SDK_HTTP_REQUEST type);
89
100PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkCacertFile(const char* fileName);
101
111PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHwdecEnable(bool enable);
112
121PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkKeepLastFrame(bool enable);
122
132PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkRetryAttempts(int attempts,
133 int milliseconds, int millisecondsMax);
148PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkVideoOutputDevice(
149 VIDEO_OUTPUT_DEVICE type, const char* context = NULL);
150
164PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkViewerInfo(
165 const char* viewerId, const char* viewerName, const char* viewerAvatar,
166 const char* viewerExtraInfo1 = NULL, const char* viewerExtraInfo2 = NULL, const char* viewerExtraInfo3 = NULL);
167
176PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkSeed(const char* seed);
177
185PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLocalRememberPlay(bool enable);
186
194PLAYERSDK_API int PLAYERSDK_CALL PLVInitSdkLibrary(const PLVAccountInfo* info);
195
204typedef void(*OnRequestVideoInfoHandler)(int code,
205 const PLVVideoRequestInfo infos[], int infosNum,
206 const PLVVideoRequestPageInfo* pageInfo, void* data);
219PLAYERSDK_API int PLAYERSDK_CALL PLVRequestVideoInfo(
220 bool sync, const PLVVideoRequestParam* param,
221 OnRequestVideoInfoHandler handler, void* data);
222
231PLAYERSDK_API int PLAYERSDK_CALL PLVCancelRequestVideoInfo();
232
243PLAYERSDK_API int PLAYERSDK_CALL PLVMigrateLocalVideoKeyFile(const char* keyFilePath, const char* secretKey);
244
257PLAYERSDK_API int PLAYERSDK_CALL PLVDeleteLocalVideoFile(const char* vid, const char* path, int rate);
258
262PLAYERSDK_API void PLAYERSDK_CALL PLVReleaseSdkLibrary(void);
268
286PLAYERSDK_API int PLAYERSDK_CALL PLVSetPreventSoftwareRecording(void* window, bool enable);
296PLAYERSDK_API int PLAYERSDK_CALL PLVGetPreventSoftwareRecording(void* window, bool* enable);
304 SOFTWARE_RECORDING_NOTIFY_TYPE type, const char* softwares, void* data);
320PLAYERSDK_API int PLAYERSDK_CALL PLVSetDetectSoftwareRecordingHandler(
321 bool enable, OnDetectSoftwareRecordingHandler handler, void* data);
323
331 DEVICE_CHANGED_TYPE type, const char* device, void* data);
341PLAYERSDK_API int PLAYERSDK_CALL PLVSetDetectHardwareRecordingHandler(
342 bool enable, OnDetectHardwareRecordingHandler handler, void* data);
348
351typedef void* PLVPlayerPtr;
358typedef bool(*OnPlayerVideoFrameHandler)(const char* vid, PLVVideoFrame* frame, void* data);
365typedef void(*OnPlayerStateHandler)(const char* vid, int state, void* data);
375 const char* vid, int property, int format, const char* value, void* data);
384 const char* vid, int inputRate, int realRate, void* data);
392typedef void(*OnPlayerProgressHandler)(const char* vid, int millisecond, void* data);
393
399typedef void(*OnPlayerAudioPlayErrorHandler)(const char* vid, void* data);
400
406typedef void(*OnPlayerAudioDeviceHandler)(int audioDeviceCount, void* data);
414PLAYERSDK_API PLVPlayerPtr PLAYERSDK_CALL PLVPlayerCreate(void* window);
419PLAYERSDK_API void PLAYERSDK_CALL PLVPlayerDestroy(PLVPlayerPtr player);
430PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVideoFrameHandler(
431 PLVPlayerPtr player, OnPlayerVideoFrameHandler lockHandler, OnPlayerVideoFrameHandler unlockHandler, void* data);
441PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetStateHandler(
442 PLVPlayerPtr player, OnPlayerStateHandler handler, void* data);
452PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetPropertyHandler(
453 PLVPlayerPtr player, OnPlayerPropertyHandler handler, void* data);
463PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetRateChangeHandler(
464 PLVPlayerPtr player, OnPlayerRateChangeHandler handler, void* data);
474PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetProgressHandler(
475 PLVPlayerPtr player, OnPlayerProgressHandler handler, void* data);
485PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioPlayErrorHandler(
486 PLVPlayerPtr player, OnPlayerAudioPlayErrorHandler handler, void* data);
496PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioDeviceHandler(
497 PLVPlayerPtr player, OnPlayerAudioDeviceHandler handler, void* data);
505PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerResetHandler(PLVPlayerPtr player);
515PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetOSDConfig(
516 PLVPlayerPtr player, bool enable, const PLVOsdConfigInfo* config);
525PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetOSDConfig(
526 PLVPlayerPtr player, PLVOsdConfigInfo& config);
536PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetLogoText(
537 PLVPlayerPtr player, bool enable, const PLVLogoTextInfo* config);
546PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetLogoText(
547 PLVPlayerPtr player, PLVLogoTextInfo& config);
562PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetCacheConfig(
563 PLVPlayerPtr player, bool enable, int maxCacheBytes, int maxCacheSeconds);
573PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCacheConfig(
574 PLVPlayerPtr player, int* maxCacheBytes, int* maxCacheSeconds);
586PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetInfo(
587 PLVPlayerPtr player, const char* vid, const char* path, int rate);
600PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPlay(
601 PLVPlayerPtr player, const char* token,
602 int seekMillisecond, bool autoDownRate, bool traceVideo, bool sync);
612PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPlayLocal(PLVPlayerPtr player, int seekMillisecond, bool autoDownRate);
622PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerLoadLocal(PLVPlayerPtr player, int seekMillisecond, bool autoDownRate);
631PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPause(PLVPlayerPtr player, bool pause);
639PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerStop(PLVPlayerPtr player);
648PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetMute(PLVPlayerPtr player, bool mute);
657PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetSeek(PLVPlayerPtr player, int millisecond);
665PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSeekToEnd(PLVPlayerPtr player);
674PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVolume(PLVPlayerPtr player, int volume);
683PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVolumeMax(PLVPlayerPtr player, int volume);
693PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerScreenshot(PLVPlayerPtr player, const char* filename);
702PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetSpeed(PLVPlayerPtr player, double speed);
710PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsMute(PLVPlayerPtr player);
718PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsValid(PLVPlayerPtr player);
726PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsPause(PLVPlayerPtr player);
734PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsPlaying(PLVPlayerPtr player);
742PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsLoaded(PLVPlayerPtr player);
750PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsLoading(PLVPlayerPtr player);
758PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentRateCount(PLVPlayerPtr player);
766PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentRate(PLVPlayerPtr player);
774PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetVolume(PLVPlayerPtr player);
782PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetDuration(PLVPlayerPtr player);
789PLAYERSDK_API double PLAYERSDK_CALL PLVPlayerGetSpeed(PLVPlayerPtr player);
796PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceCount(PLVPlayerPtr player);
807PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceInfo(PLVPlayerPtr player,
808 int index, char deviceId[PLV_MAX_DEVICE_ID_LENGTH], char deviceName[PLV_MAX_DEVICE_ID_LENGTH]);
817PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentAudioDevice(PLVPlayerPtr player, char deviceId[PLV_MAX_DEVICE_ID_LENGTH]);
826PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetCurrentAudioDevice(PLVPlayerPtr player, const char deviceId[PLV_MAX_DEVICE_ID_LENGTH]);
836PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerReloadAudioDevice(PLVPlayerPtr player);
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.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHttpRequest(SDK_HTTP_REQUEST type)
for thd sdk http request type.
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 PLVRequestVideoInfo(bool sync, const PLVVideoRequestParam *param, OnRequestVideoInfoHandler handler, void *data)
request video info.
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.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkCacertFile(const char *fileName)
set upload ca file, if use https, must set the ca file, otherwise error.
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 PLVCancelRequestVideoInfo()
cancel request video info.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogFile(const char *fileName)
set the sdk log file.
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHwdecEnable(bool enable)
Hardware coding.
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 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.
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 PLVPlayerGetDuration(PLVPlayerPtr player)
the video duration.
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsLoaded(PLVPlayerPtr player)
the video have load or idle.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetVolume(PLVPlayerPtr player)
the video volume.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentRate(PLVPlayerPtr player)
the video current rate.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetAudioDeviceCount(PLVPlayerPtr player)
get audio device count.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetPropertyHandler(PLVPlayerPtr player, OnPlayerPropertyHandler handler, void *data)
for property change callback.
void(* OnPlayerProgressHandler)(const char *vid, int millisecond, void *data)
the player play media progress.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetSpeed(PLVPlayerPtr player, double speed)
Slow down or speed up playback by the factor given as parameter.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPlayLocal(PLVPlayerPtr player, int seekMillisecond, bool autoDownRate)
play local video, must set the video path.
PLAYERSDK_API PLVPlayerPtr PLAYERSDK_CALL PLVPlayerCreate(void *window)
Creates the PLVPlayerPtr object and returns the pointer.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetCurrentAudioDevice(PLVPlayerPtr player, const char deviceId[PLV_MAX_DEVICE_ID_LENGTH])
set the current audio device.
void(* OnPlayerAudioDeviceHandler)(int audioDeviceCount, void *data)
the player audio device list change.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetSeek(PLVPlayerPtr player, int millisecond)
seek the play pos.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVideoFrameHandler(PLVPlayerPtr player, OnPlayerVideoFrameHandler lockHandler, OnPlayerVideoFrameHandler unlockHandler, void *data)
for video frame callback.
PLAYERSDK_API double PLAYERSDK_CALL PLVPlayerGetSpeed(PLVPlayerPtr player)
the video speed.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetLogoText(PLVPlayerPtr player, bool enable, const PLVLogoTextInfo *config)
set the video Logo text info
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetProgressHandler(PLVPlayerPtr player, OnPlayerProgressHandler handler, void *data)
for play progress callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSeekToEnd(PLVPlayerPtr player)
stop in end frame.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentAudioDevice(PLVPlayerPtr player, char deviceId[PLV_MAX_DEVICE_ID_LENGTH])
the current audio device id.
void(* OnPlayerPropertyHandler)(const char *vid, int property, int format, const char *value, void *data)
player media property value.
void(* OnPlayerRateChangeHandler)(const char *vid, int inputRate, int realRate, void *data)
the player rate change.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioPlayErrorHandler(PLVPlayerPtr player, OnPlayerAudioPlayErrorHandler handler, void *data)
for audio play error callback.
void(* OnPlayerStateHandler)(const char *vid, int state, void *data)
player media state.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVolume(PLVPlayerPtr player, int volume)
set the video volume.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerScreenshot(PLVPlayerPtr player, const char *filename)
screenshot the play video picture.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetMute(PLVPlayerPtr player, bool mute)
set the video mute state.
void(* OnPlayerAudioPlayErrorHandler)(const char *vid, void *data)
the player play audio error.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetOSDConfig(PLVPlayerPtr player, bool enable, const PLVOsdConfigInfo *config)
set the video OSD config info
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsValid(PLVPlayerPtr player)
the video have load or idle.
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsMute(PLVPlayerPtr player)
the video mute state.
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsPlaying(PLVPlayerPtr player)
the video playing or idle.
bool(* OnPlayerVideoFrameHandler)(const char *vid, PLVVideoFrame *frame, void *data)
player video frame.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetOSDConfig(PLVPlayerPtr player, PLVOsdConfigInfo &config)
get the video OSD config info.
PLAYERSDK_API void PLAYERSDK_CALL PLVPlayerDestroy(PLVPlayerPtr player)
Destory the PLVPlayerPtr object.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetCacheConfig(PLVPlayerPtr player, bool enable, int maxCacheBytes, int maxCacheSeconds)
set the video cache config info.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerResetHandler(PLVPlayerPtr player)
for reset all handler.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetLogoText(PLVPlayerPtr player, PLVLogoTextInfo &config)
get the video Logo text info.
void * PLVPlayerPtr
player object type.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerStop(PLVPlayerPtr player)
stop the video.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetStateHandler(PLVPlayerPtr player, OnPlayerStateHandler handler, void *data)
for state change callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPause(PLVPlayerPtr player, bool pause)
pause the video.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetInfo(PLVPlayerPtr player, const char *vid, const char *path, int rate)
set the video info before play.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCurrentRateCount(PLVPlayerPtr player)
the video have rate count.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetAudioDeviceHandler(PLVPlayerPtr player, OnPlayerAudioDeviceHandler handler, void *data)
for play audio device list callback.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerPlay(PLVPlayerPtr player, const char *token, int seekMillisecond, bool autoDownRate, bool traceVideo, bool sync)
play the video.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerGetCacheConfig(PLVPlayerPtr player, int *maxCacheBytes, int *maxCacheSeconds)
get the video cache config info.
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsPause(PLVPlayerPtr player)
the video play state or pause.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetRateChangeHandler(PLVPlayerPtr player, OnPlayerRateChangeHandler handler, void *data)
for current bit chanage callback, the input rate is VIDEO_RATE_AUTO will callback.
PLAYERSDK_API bool PLAYERSDK_CALL PLVPlayerIsLoading(PLVPlayerPtr player)
the video is loading or idle.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerSetVolumeMax(PLVPlayerPtr player, int volume)
set the video volume gain.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerLoadLocal(PLVPlayerPtr player, int seekMillisecond, bool autoDownRate)
load local video, no play, must set the video path.
PLAYERSDK_API int PLAYERSDK_CALL PLVPlayerReloadAudioDevice(PLVPlayerPtr player)
reload the audio device.
void(* OnDetectHardwareRecordingHandler)(DEVICE_CHANGED_TYPE type, const char *device, void *data)
for detect device recording callback.
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
DEVICE_CHANGED_TYPE
VIDEO_OUTPUT_DEVICE
LOG_FILTER_TYPE
const int PLV_MAX_DEVICE_ID_LENGTH
SDK_HTTP_REQUEST