mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
适配ZLToolKit develop分支
This commit is contained in:
24
README.md
24
README.md
@@ -1,10 +1,10 @@
|
||||
# 一个基于C++11简单易用的轻量级流媒体库
|
||||
平台|编译状态
|
||||
----|-------
|
||||
Linux | [](https://travis-ci.org/xiongziliang/ZLMediaKit)
|
||||
macOS | [](https://travis-ci.org/xiongziliang/ZLMediaKit_build_for_mac)
|
||||
iOS | [](https://travis-ci.org/xiongziliang/ZLMediaKit-build_for_ios)
|
||||
Android | [](https://travis-ci.org/xiongziliang/ZLMediaKit_build_for_android)
|
||||
Linux | [](https://travis-ci.org/xiongziliang/ZLMediaKit)
|
||||
macOS | [](https://travis-ci.org/xiongziliang/ZLMediaKit_build_for_mac)
|
||||
iOS | [](https://travis-ci.org/xiongziliang/ZLMediaKit-build_for_ios)
|
||||
Android | [](https://travis-ci.org/xiongziliang/ZLMediaKit_build_for_android)
|
||||
Windows | 已经完成移植
|
||||
|
||||
## 项目特点
|
||||
@@ -124,15 +124,15 @@ Windows | 已经完成移植
|
||||
## 使用方法
|
||||
- 作为服务器:
|
||||
```
|
||||
TcpServer<RtspSession>::Ptr rtspSrv(new TcpServer<RtspSession>());
|
||||
TcpServer<RtmpSession>::Ptr rtmpSrv(new TcpServer<RtmpSession>());
|
||||
TcpServer<HttpSession>::Ptr httpSrv(new TcpServer<HttpSession>());
|
||||
TcpServer<HttpsSession>::Ptr httpsSrv(new TcpServer<HttpsSession>());
|
||||
TcpServer::Ptr rtspSrv(new TcpServer());
|
||||
TcpServer::Ptr rtmpSrv(new TcpServer());
|
||||
TcpServer::Ptr httpSrv(new TcpServer());
|
||||
TcpServer::Ptr httpsSrv(new TcpServer());
|
||||
|
||||
rtspSrv->start(mINI::Instance()[Config::Rtsp::kPort]);
|
||||
rtmpSrv->start(mINI::Instance()[Config::Rtmp::kPort]);
|
||||
httpSrv->start(mINI::Instance()[Config::Http::kPort]);
|
||||
httpsSrv->start(mINI::Instance()[Config::Http::kSSLPort]);
|
||||
rtspSrv->start<RtspSession>(mINI::Instance()[Config::Rtsp::kPort]);
|
||||
rtmpSrv->start<RtmpSession>(mINI::Instance()[Config::Rtmp::kPort]);
|
||||
httpSrv->start<HttpSession>(mINI::Instance()[Config::Http::kPort]);
|
||||
httpsSrv->start<HttpsSession>(mINI::Instance()[Config::Http::kSSLPort]);
|
||||
EventPoller::Instance().runLoop();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user