RTSP播放器网页网页直播无插件、Android、iOS平台由清溪青视开放平台开发维护。与市面上大多数通用播放器不同,EasyPlayer-RTSP系列已经广泛应用于各行各业(尤其是安防行业)。主要原因是EasyPlayer-RTSP更加精细和专注,延迟非常低,RTSP协议兼容性非常高,在编码数据分析等方面有很大的优势。libEasyPlayer-RTSP库接口调用说明API接口函数定义函数说明:activateEasyPlayerintEasyPlayer_Init(char*key)函数说明:启动流媒体播放参数说明:url流媒体地址,hWnd窗口句柄,renderFormat编码格式,rtpovertcp拉流传输方式,0=udp,1=tcp,用户名,密码,callback数据回调,bHardDecode硬件解码1=yes,0=no。intEasyPlayer_OpenStream(constchar*url,HWNDhWnd,RENDER_FORMATrenderFormat,intrtpovertcp,constchar*username,constchar*password,MediaSourceCallBackcallback=NULL,void*userPtr=NULL,boolbHardDecode=true)函数说明:关闭流参数说明:channelId频道ID,EasyPlayer_OpenStream函数的返回值。intEasyPlayer_CloseStream(intchannelId)功能说明:设置当前流播放缓存帧数。参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值cachecache视频帧数intcache)功能说明:播放器按比例显示参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值shownToScale0=显示整个窗口区域,1=按比例显示intEasyPlayer_SetShownToScale(intchannelId,intshownToScale)函数说明:设置解码类型参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值decodeKeyframeOnly0=解码所有帧,1=只解码关键帧intEasyPlayer_SetDecodeType(intchannelId,intdecodeKeyframeOnly)函数说明:设置视频显示时的渲染区域参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值lpSrcRect设置渲染区域的矩形结构intEasyPlayer_SetRenderRect(intchannelId,IntPtrlpSrcRect)函数说明:设置是否显示码流信息参数说明:channelIdpassChannelID,EasyPlayer_OpenStream函数返回值Show0=不显示,1=显示i??ntEasyPlayer_ShowStatisticalInfo(intchannelId,intshow)函数说明:附件文本显示参数说明:channelId通道ID,1为显示,0为不显示,osdInfo设置渲染区矩形结构指针intEasyPlayer_ShowOSD(intchannelId,intshow,EASY_PALYER_OSDosdInfo)函数说明:开始播放声音参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值intEasyPlayer_PlaySound(intchannelId)函数说明:停止播放声音参数说明:channelIdchannelID,EasyPlayer_OpenStream函数返回值intEasyPlayer_StopSound(intchannelId)函数描述:设置手动抓包存储路径参数描述:channelIdchannelID,EasyPlayer_OpenStream函数返回值shotPathpathintEasyPlayer_SetManuPicShotPath(intchannelId,stringshotPath)函数描述:开始抓包参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值intEasyPlayer_StartManuPicShot(intchannelId)函数描述:停止抓拍参数描述:channelId通道ID,EasyPlayer_OpenStream函数返回值intEasyPlayer_StopManuPicShot(intchannelId)函数描述:开始录制mp4文件参数描述:channelId通道ID,EasyPlayer_OpenStream函数返回值intEasyPlayer_StartManuRecording(intchannelId)函数说明:设置录制视频文件的路径参数说明:channelId通道ID,EasyPlayer_OpenStream函数Number返回值recordPath保存路径intEasyPlayer_SetManuRecordPath(intchannelId,stringrecordPath);函数说明:停止录音参数说明:channelId通道ID,EasyPlayer_OpenStream函数返回值intEasyPlayer_StopManuRecording(intchannelId)
