資源簡介
C++實現RTSP/RTP流媒體服務器,同時支持Linux和Windows編譯環境。使用VLC客戶端測試通過。實現RTSP的OPTIONS、DESCRIBE、SETUP、PLAY、PAUSE、TEARDOWN,實現SDP生成,實現RTP打包,實現TS文件解析。有相應的源碼分析文檔。
代碼片段和文件信息
#include?“Def.h“
const?RtspMethodStr?g_method[RTSP_METHOD_MAX]?=?{
{RTSP_OPTIONS?“OPTIONS“}
{RTSP_DESCRIBE?“DESCRIBE“}
{RTSP_SETUP?“SETUP“}
{RTSP_PLAY?“PLAY“}
{RTSP_PAUSE?“PAUSE“}
{RTSP_TEARDOWN?“TEARDOWN“}
{RTSP_SET_PARAMETER?“SET_PARAMETER“}
{RTSP_GET_PARAMETER?“GET_PARAMETER“}
};
const?RspCodeStr?g_rsp_code_str[15]?=?{
{?200?“OK“?}
{?302?“Moved?Temporarily“?}
{?400?“Bad?Request“?}
{?401?“Unauthorized“?}
{?403?“Forbidden“?}
{?404?“Not?Found“?}
{?405?“Method?Not?Allowed“?}
{?454?“Session?Not?Found“?}
{?457?“Invalid?Range“?}
{?461?“Unsupported?transport“?}
{?500?“Internal?Server?Error“?}
{?503?“Service?Unavailable“?}
{?505?“RTSP?Version?not?supported“?}
{?551?“Option?not?supported“?}
{?0?NULL?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????I.A....??????3182??2015-05-15?16:01??RtspCS\Client\Client.vcxproj
????I.A....???????133??2015-05-15?16:01??RtspCS\Client\Client.vcxproj.filters
????I.A....???????143??2015-05-15?16:01??RtspCS\Client\Client.vcxproj.user
????I.A....????363008??2015-05-15?16:01??RtspCS\Docs\RTSP服務器源碼分析.doc
????I.A....??????2861??2015-05-15?16:01??RtspCS\Linux\common.mk
????I.A....???????368??2015-05-15?16:01??RtspCS\Linux\makefile_s
????I.A....??????1342??2015-05-15?16:01??RtspCS\RtspCS.sln
????I.A....??????5080??2015-05-15?16:01??RtspCS\Server\Server.vcxproj
????I.A....??????1763??2015-05-15?16:01??RtspCS\Server\Server.vcxproj.filters
????I.A....???????143??2015-05-15?16:01??RtspCS\Server\Server.vcxproj.user
????I.A....???????808??2015-05-15?16:01??RtspCS\Source\Def.cpp
????I.A....??????2956??2015-05-15?16:01??RtspCS\Source\Def.h
????I.A....??????1783??2015-05-15?16:01??RtspCS\Source\ListenSock.cpp
????I.A....???????436??2015-05-15?16:01??RtspCS\Source\ListenSock.h
????I.A....???????781??2015-05-15?16:01??RtspCS\Source\Main.cpp
????I.A....???????552??2015-05-15?16:01??RtspCS\Source\Mutex.cpp
????I.A....???????603??2015-05-15?16:01??RtspCS\Source\Mutex.h
????I.A....???????761??2015-05-15?16:01??RtspCS\Source\NTime.cpp
????I.A....???????433??2015-05-15?16:01??RtspCS\Source\NTime.h
????I.A....??????4815??2015-05-15?16:01??RtspCS\Source\PrintLog.cpp
????I.A....??????2186??2015-05-15?16:01??RtspCS\Source\PrintLog.h
????I.A....??????3870??2015-05-15?16:01??RtspCS\Source\Server\DataSrc.cpp
????I.A....??????1133??2015-05-15?16:01??RtspCS\Source\Server\DataSrc.h
????I.A....??????9882??2015-05-15?16:01??RtspCS\Source\Server\RtspSession.cpp
????I.A....??????1518??2015-05-15?16:01??RtspCS\Source\Server\RtspSession.h
????I.A....??????1316??2015-05-15?16:01??RtspCS\Source\Server\RtspSvr.cpp
????I.A....???????443??2015-05-15?16:01??RtspCS\Source\Server\RtspSvr.h
????I.A....??????3059??2015-05-15?16:01??RtspCS\Source\Server\TsFileReader.cpp
????I.A....???????563??2015-05-15?16:01??RtspCS\Source\Server\TsFileReader.h
????I.A....??????2952??2015-05-15?16:01??RtspCS\Source\Sock.cpp
............此處省略22個文件信息
- 上一篇:MFC半透明異形窗口(子控件不透明)
- 下一篇:農夫過河問題的求解C語言
評論
共有 條評論