天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當(dāng)前位置:主頁 > 論文百科 > 教案模板 >

多媒體_live555構(gòu)建流媒體服務(wù)器(1)

發(fā)布時(shí)間:2016-12-17 04:04

  本文關(guān)鍵詞:流媒體,由筆耕文化傳播整理發(fā)布。


live555構(gòu)建流媒體服務(wù)器(1)

讀test.264碼流文件,,客戶端可以通過ffplay.exe rtsp: xxx播放出來。

直接使用編譯好的庫,改自testOnDemandRTSPServer.cpp

#include #include comment (lib, "Ws2_32.lib") #pragma comment (lib, "BasicUsageEnvironment.lib") #pragma comment (lib, "groupsock.lib") #pragma comment (lib, "liveMedia.lib") #pragma comment (lib, "UsageEnvironment.lib") UsageEnvironment* env; // To make the second and subsequent client for each stream reuse the same // input stream as the first client (rather than playing the file from the // start for each client), change the following "False" to "True": Boolean reuseFirstSource = False; // To stream *only* MPEG-1 or 2 video "I" frames // (e.g., to reduce network bandwidth), // change the following "False" to "True": Boolean iFramesOnly = False; static void announceStream(RTSPServer* rtspServer, ServerMediaSession* sms, * inputFileName); newMatroskaDemuxWatchVariable; static MatroskaFileServerDemux* demux; ) { demux = newDemux; newMatroskaDemuxWatchVariable = 1; } int main(int argc, char** argv) { // Begin by setting up our usage environment: TaskScheduler* scheduler = BasicTaskScheduler::createNew(); env = BasicUsageEnvironment::createNew(*scheduler); UserAuthenticationDatabase* authDB = NULL; #ifdef ACCESS_CONTROL // To implement client access control to the RTSP server, do the following: authDB = new UserAuthenticationDatabase; authDB->addUserRecord(, ); // replace these with real strings // Repeat the above with each

  本文關(guān)鍵詞:流媒體,由筆耕文化傳播整理發(fā)布。



本文編號(hào):216192

資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/wenshubaike/jajx/216192.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶53224***提供,本站僅收錄摘要或目錄,作者需要?jiǎng)h除請(qǐng)E-mail郵箱bigeng88@qq.com