背景分析EasyPusher流媒体推送软件是一套简单、高效、稳定的标准RTSP/RTP协议直播推送库,支持H.264/G。711/G.726/AAC等音视频数据推送到RTSP流媒体服务器进行低延时直播或视频通信,支持Windows、Linux、ARM、Android、iOS等平台。EasyPusher-Win推流到EasyDarwin服务器失败问题描述EasyPusher-Win推流到EasyDarwin服务器失败,如下图:分析问题跟踪代码,发现nRet=m_pManager->StartPush(URLInfo.pushServerAddr,URLInfo.pushServerPort,URLInfo.sdpName)在OnBnClickedButtonStart(),URLInfo.nPushBufferLenth,bPushRtmp);返回值为-1;继续跟踪,发现m_sPushInfo.pusherHandle=EasyPusher_Create();EasyPusher_Create()在StartPush(char*ServerIp,intnPushPort,char*sPushName,intnPushBufSize,boolbPushRtmp)中返回0x000,至此找到根本原因:libEasyPusher.dll解决问题。我们将\Lib\x86中的libEasyPusher.dll复制到bin文件夹下,运行程序即可解决问题。
