2016-10-13 00:16:48 点击量:14 标签: 收藏本文
1下载openssl:http://slproweb.com/products/Win32OpenSSL.html
选择Win32 OpenSSL v1.0.1e(要下包含头文件和库的版本)
安装Openssl,默认在C:\OpenSSL-Win32
如果不是需要手动将路径加入到VS2010工程
2在builders\VS2010目录下打开VS2010.sln
设置crtmpserver为启动项
进行编译
缺少Openssl相关或连接错误,将Openssl头文件和库文件的路径加上,
将libeay32.lib;ssleay32.lib;这两个库添加到工程
来源:http://www.zhujiatc.esy.es/crtmpserver/index.htm
info["audio"]["droppedPacketsCount"] = 0;
info["video"]["droppedPacketsCount"] = 0;
这儿报错是因为Variant不知该重载何种类型,强制转换为uint64_t即可(其它整形也可以,但uint64_t可以表示更大的数)
info["audio"]["droppedPacketsCount"] = (uint64_t)0;
info["video"]["droppedPacketsCount"] = (uint64_t)0;
还要就是缺少文件
将sources\thelib\src\protocols\rtp\nattraversalprotocol.cpp添加到thelib项目中
crtmpserver.exe crtmpserver.lua
无法定位程序输入点WSASendMsg于动态链接库WS2_32.dll上
有个简单解决方案
找到
#define SENDMSG(s,msg,flags,sent) WSASendMsg(s,msg,flags,sent,NULL,NULL)
改为
#define SENDMSG(s,msg,flags,sent) -1
来源:http://www.zhujiatc.esy.es/crtmpserver/index.htm