Commit 33e7113e by xiongziliang

Merge remote-tracking branch 'origin/master'

parents d66c5971 0af676c3
#A lightweight ,high performance and stable stream server and client framework based on C++11. # A lightweight ,high performance and stable stream server and client framework based on C++11.
[![Build Status](https://travis-ci.org/xiongziliang/ZLMediaKit.svg?branch=master)](https://travis-ci.org/xiongziliang/ZLMediaKit) [![Build Status](https://travis-ci.org/xiongziliang/ZLMediaKit.svg?branch=master)](https://travis-ci.org/xiongziliang/ZLMediaKit)
...@@ -132,12 +132,12 @@ It is recommended to compile on Ubuntu or MacOS,compiling on windows is cumber ...@@ -132,12 +132,12 @@ It is recommended to compile on Ubuntu or MacOS,compiling on windows is cumber
``` ```
# If it is on centos6.x, you need to install the newer version of GCC and cmake first, # If it is on centos6.x, you need to install the newer version of GCC and cmake first,
# and then compile manually according to the script "build_for_linux.sh". # and then compile manually according to the script "build_for_linux.sh".
# If it is on a newer version of a system such as Ubuntu or Debain, # If it is on a newer version of a system such as Ubuntu or Debain,
# step 4 can be manipulated directly. # step 4 can be manipulated directly.
# 1、Install GCC5.2 (this step can be skipped if the GCC version is higher than 4.7) # 1、Install GCC5.2 (this step can be skipped if the GCC version is higher than 4.7)
sudo yum install centos-release-scl -y sudo yum install centos-release-scl -y
sudo yum install devtoolset-4-toolchain -y sudo yum install devtoolset-4-toolchain -y
scl enable devtoolset-4 bash scl enable devtoolset-4 bash
# 2、Install cmake (this step can be skipped if the cmake version is higher than 3.1) # 2、Install cmake (this step can be skipped if the cmake version is higher than 3.1)
...@@ -145,17 +145,17 @@ sudo yum install devtoolset-4-toolchain -y ...@@ -145,17 +145,17 @@ sudo yum install devtoolset-4-toolchain -y
cd cmake-3.10.0-rc4 cd cmake-3.10.0-rc4
./configure ./configure
make -j4 make -j4
sudo make install sudo make install
# 3、Switch to high version GCC # 3、Switch to high version GCC
scl enable devtoolset-4 bash scl enable devtoolset-4 bash
# 4、build # 4、build
cd ZLMediaKit cd ZLMediaKit
./build_for_linux.sh ./build_for_linux.sh
``` ```
###Build on macOS ### Build on macOS
- My environment - My environment
- macOS Sierra(10.12.1) + xcode8.3.1 - macOS Sierra(10.12.1) + xcode8.3.1
...@@ -168,9 +168,9 @@ scl enable devtoolset-4 bash ...@@ -168,9 +168,9 @@ scl enable devtoolset-4 bash
./build_for_mac.sh ./build_for_mac.sh
``` ```
###Build on iOS ### Build on iOS
​ This build method is no longer recommended.It is recommended that make Xcode project by yourself. This build method is no longer recommended.It is recommended that make Xcode project by yourself.
- My environment - My environment
...@@ -196,9 +196,9 @@ scl enable devtoolset-4 bash ...@@ -196,9 +196,9 @@ scl enable devtoolset-4 bash
###Build on Android ### Build on Android
​ Now you can open android sudio project in `Android` folder,this is a `aar library` and damo project. Now you can open android sudio project in `Android` folder,this is a `aar library` and damo project.
- My environment - My environment
- macOS Sierra(10.12.1) + xcode8.3.1 - macOS Sierra(10.12.1) + xcode8.3.1
...@@ -212,7 +212,7 @@ scl enable devtoolset-4 bash ...@@ -212,7 +212,7 @@ scl enable devtoolset-4 bash
export ANDROID_NDK_ROOT=/path/to/ndk export ANDROID_NDK_ROOT=/path/to/ndk
./build_for_android.sh ./build_for_android.sh
``` ```
###Build on Windows ### Build on Windows
- My environment - My environment
- windows 10 - windows 10
...@@ -226,7 +226,7 @@ scl enable devtoolset-4 bash ...@@ -226,7 +226,7 @@ scl enable devtoolset-4 bash
3 Find the project file (ZLMediaKit.sln), double-click to open it with vs2017. 3 Find the project file (ZLMediaKit.sln), double-click to open it with vs2017.
4 Choose to compile Release version. Find the target file and run the test case. 4 Choose to compile Release version. Find the target file and run the test case.
``` ```
##Usage ## Usage
- As server: - As server:
``` ```
...@@ -291,7 +291,7 @@ scl enable devtoolset-4 bash ...@@ -291,7 +291,7 @@ scl enable devtoolset-4 bash
player->play("rtmp://live.hkstv.hk.lxdns.com/live/hks"); player->play("rtmp://live.hkstv.hk.lxdns.com/live/hks");
RtmpPusher::Ptr pusher; RtmpPusher::Ptr pusher;
NoticeCenter::Instance().addListener(nullptr,Config::Broadcast::kBroadcastRtmpSrcRegisted, NoticeCenter::Instance().addListener(nullptr,Config::Broadcast::kBroadcastRtmpSrcRegisted,
[&pusher](BroadcastRtmpSrcRegistedArgs){ [&pusher](BroadcastRtmpSrcRegistedArgs){
const_cast<RtmpPusher::Ptr &>(pusher).reset(new RtmpPusher(app,stream)); const_cast<RtmpPusher::Ptr &>(pusher).reset(new RtmpPusher(app,stream));
pusher->publish("rtmp://jizan.iok.la/live/test"); pusher->publish("rtmp://jizan.iok.la/live/test");
...@@ -306,8 +306,6 @@ NoticeCenter::Instance().addListener(nullptr,Config::Broadcast::kBroadcastRtmpSr ...@@ -306,8 +306,6 @@ NoticeCenter::Instance().addListener(nullptr,Config::Broadcast::kBroadcastRtmpSr
[ZLMediaKit](http://git.oschina.net/xiahcu/ZLMediaKit) [ZLMediaKit](http://git.oschina.net/xiahcu/ZLMediaKit)
## Licence ## Licence
``` ```
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论