稳定、兼容、高效、超低延时RTSP播放器网页web无插件直播流媒体音视频播放器libEasyPlayer-RTSP库接口调用说明

EasyPlayer-RTSP播放器

EasyPlayer-RTSP播放器是一套RTSP专用的播放器,包括有:Windows(支持IE插件,npapi插件)、Android、iOS三个平台,是区别于市面上大部分的通用播放器,EasyPlayer-RTSP系列从2014年初发展至今得到了各行各业(尤其是安防行业)的广泛应用,其主要原因是EasyPlayer-RTSP更加精炼、更加专注,具备非常低的延时,非常高RTSP协议兼容性,编码数据解析等方面,都有非常大的优势。

 

libEasyPlayer-RTSP库接口调用说明

API接口函数定义

函数说明:激活EasyPlayer
int EasyPlayer_Init(char* key)

函数说明:开始进行流播放
参数说明:url流媒体地址、hWnd窗口句柄、renderFormat编码格式、rtpovertcp拉取流的传输模式,0=udp,1=tcp、用户名、密码、callback数据回调、bHardDecode硬件解码1=是,0=否。
int EasyPlayer_OpenStream(const char *url, HWND hWnd, RENDER_FORMAT renderFormat, int rtpovertcp, const char *username, const char *password, MediaSourceCallBack callback=NULL, void *userPtr=NULL, bool bHardDecode=true)

函数说明: 关闭流
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值.
int EasyPlayer_CloseStream(int channelId)

函数说明:设置当前流播放缓存帧数.
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
cache缓存的视频帧数
int EasyPlayer_SetFrameCache(int channelId, int cache)

函数说明:播放器按比例进行显示
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
shownToScale 0=整个窗口区域显示,1=按比例显示
int EasyPlayer_SetShownToScale(int channelId, int shownToScale)

函数说明:设置解码类型
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
decodeKeyframeOnly 0=所有帧解码,1=只解码关键帧
int EasyPlayer_SetDecodeType(int channelId, int decodeKeyframeOnly)

函数说明:设置视频显示时渲染区域
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
lpSrcRect设置渲染区域的矩形结构体
int EasyPlayer_SetRenderRect(int channelId, IntPtr lpSrcRect)

函数说明:设置是否显示码流信息
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
Show 0=不显示,1=显示
int EasyPlayer_ShowStatisticalInfo(int channelId, int show)

函数说明:附件文字显示
参数说明:channelId通道ID,1显示,0不显示,osdInfo 设置渲染区域的矩形结构体指针
int EasyPlayer_ShowOSD(int channelId, int show, EASY_PALYER_OSD osdInfo)

函数说明:开始播放声音
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_PlaySound(int channelId)

函数说明:停止播放声音
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_StopSound(int channelId)

函数说明:设置手工抓图存储路径
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
shotPath路径
int EasyPlayer_SetManuPicShotPath(int channelId, string shotPath)

函数说明:开始抓图
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_StartManuPicShot(int channelId)

函数说明:停止抓图
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_StopManuPicShot(int channelId)

函数说明:开始录制mp4文件
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_StartManuRecording(int channelId)

函数说明:设置录制视频文件路径
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
recordPath保存路径
int EasyPlayer_SetManuRecordPath(int channelId, string recordPath);

函数说明:停止录像
参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值
int EasyPlayer_StopManuRecording(int channelId)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值