plv player sdk doc
Loading...
Searching...
No Matches
Typedefs | Functions
plv-player-core.h File Reference

Go to the source code of this file.

Typedefs

typedef void(* OnLogMessageHandler) (LOG_FILTER_TYPE level, const char *message, void *data)
 log message callback.
 
typedef void(* OnDetectSoftwareRecordingHandler) (SOFTWARE_RECORDING_NOTIFY_TYPE type, const char *softwares, void *data)
 for detect softward recording callback.
 
typedef void(* OnDetectHardwareRecordingHandler) (DEVICE_CHANGED_TYPE type, const char *device, void *data)
 for detect device recording callback.
 

Functions

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 PLVSetSdkLogLevel (LOG_FILTER_TYPE level)
 set the sdk log filter level.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogFile (const char *fileName)
 set the sdk log file.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLogMessageCallback (bool enable, OnLogMessageHandler handler, void *data)
 for log message callback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkHwdecEnable (bool enable)
 Hardware coding.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkKeepLastFrame (bool enable)
 end video will keep in last frame.
 
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 problem, it is generally not recommended to use.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkLocalRememberPlay (bool enable)
 Set the last playback position for playback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVSetSdkRetryAttempts (int attempts, int milliseconds, int millisecondsMax)
 download retry count, default unlimit retry
 
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 PLVSetSdkSeed (const char *seed)
 set decryption seed, only used in vod.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVInitSdkLibrary (const PLVAccountInfo *info)
 init the sdk.
 
PLAYERSDK_API void PLAYERSDK_CALL PLVReleaseSdkLibrary (void)
 release sdk.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDeleteLocalVideoFile (const char *vid, const char *path, int rate)
 delete local video file.
 
PLAYERSDK_API bool PLAYERSDK_CALL PLVCheckFileComplete (const char *vid, const char *videoFilePath, int rate)
 check the video is completed.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVGetAudioDeviceCount ()
 get audio device count.
 
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 PLVSetPreventSoftwareRecording (void *window, bool enable)
 for prevent screen recording or screenshot.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVGetPreventSoftwareRecording (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 PLVSetDetectHardwareRecordingHandler (bool enable, OnDetectHardwareRecordingHandler handler, void *data)
 for detect device changed callback.
 
PLAYERSDK_API int PLAYERSDK_CALL PLVDetectVM ()
 for detect virtual machine environment.