|
| PLAYERSDK_API PLVLivePlayerPtr PLAYERSDK_CALL | PLVLivePlayerCreate (void *window) |
| | 创建直播播放对象并返回对象指针.
|
| |
| PLAYERSDK_API void PLAYERSDK_CALL | PLVLivePlayerDestroy (PLVLivePlayerPtr player) |
| | 销毁播放对象.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetVideoFrameHandler (PLVLivePlayerPtr player, OnLivePlayerVideoFrameHandler lockHandler, OnLivePlayerVideoFrameHandler unlockHandler, void *data) |
| | 设置播放视频帧的回调通知.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetStateHandler (PLVLivePlayerPtr player, OnLivePlayerStateHandler handler, void *data) |
| | 设置播放状态的回调通知.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetPropertyHandler (PLVLivePlayerPtr player, OnLivePlayerPropertyHandler handler, void *data) |
| | 设置播放属性值的回调通知.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetAudioPlayErrorHandler (PLVLivePlayerPtr player, OnLivePlayerAudioPlayErrorHandler handler, void *data) |
| | 设置音频播放错误回调.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetChannelStateHandler (PLVLivePlayerPtr player, OnLivePlayerChannelStateHandler handler, void *data) |
| | 设置频道直播状态改变回调.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetChannelInfoHandler (PLVLivePlayerPtr player, OnLivePlayerChannelInfoHandler handler, void *data) |
| | 设置频道信息回调.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetOSDConfig (PLVLivePlayerPtr player, bool enable, const PLVOsdConfigInfo *config) |
| | 设置跑马灯信息
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerGetOSDConfig (PLVLivePlayerPtr player, PLVOsdConfigInfo *config) |
| | 获取跑马灯信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetLogoText (PLVLivePlayerPtr player, bool enable, const PLVLogoTextInfo *config) |
| | 设置 LOGO 信息
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerGetLogoText (PLVLivePlayerPtr player, PLVLogoTextInfo *config) |
| | 获取 LOGO 信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetCacheConfig (PLVLivePlayerPtr player, int cacheMs, bool speedTrackingEnable, bool seekTrackingEnable) |
| | 设置播放缓存信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerGetCacheConfig (PLVLivePlayerPtr player, int *cacheMs, bool *speedTrackingEnable, bool *seekTrackingEnable) |
| | 获取播放缓存信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetLine (PLVLivePlayerPtr player, int lineIndex) |
| | 设置播放线路,通过频道信息回调获取频道线路信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetQuality (PLVLivePlayerPtr player, int qualityIndex) |
| | 设置播放清晰度,通过频道信息回调获取频道清晰度信息.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetPlayMode (PLVLivePlayerPtr player, int playMode) |
| | 设置播放模式,通过频道信息回调获取频道是否支持音视频播放模式.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetToken (PLVLivePlayerPtr player, const char *token) |
| | 保留接口
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerPlay (PLVLivePlayerPtr player, const char *channelId) |
| | 播放频道直播,始终采用异步模式,中途可随时停止.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerPause (PLVLivePlayerPtr player, bool pause) |
| | 暂停或继续播放.
|
| |
| PLAYERSDK_API bool PLAYERSDK_CALL | PLVLivePlayerIsPause (PLVLivePlayerPtr player) |
| | 判断是否暂停状态.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerStop (PLVLivePlayerPtr player) |
| | 停止播放.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerMute (PLVLivePlayerPtr player, bool mute) |
| | 设置是否静音状态.
|
| |
| PLAYERSDK_API bool PLAYERSDK_CALL | PLVLivePlayerIsMute (PLVLivePlayerPtr player) |
| | 判断是否静音状态.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetVolume (PLVLivePlayerPtr player, int volume) |
| | 设置播放声音.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetVolumeMax (PLVLivePlayerPtr player, int volume) |
| | 设置声音增益.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerGetVolume (PLVLivePlayerPtr player) |
| | 获取当前音量值.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerScreenshot (PLVLivePlayerPtr player, const char *filename) |
| | 视频截屏.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerGetCurrentAudioDevice (PLVLivePlayerPtr player, char deviceId[PLV_MAX_DEVICE_ID_LENGTH]) |
| | 获取当前扬声器设备标识.
|
| |
| PLAYERSDK_API int PLAYERSDK_CALL | PLVLivePlayerSetCurrentAudioDevice (PLVLivePlayerPtr player, const char deviceId[PLV_MAX_DEVICE_ID_LENGTH]) |
| | 设置当前扬声器设备标识.
|
| |