Media stream server library written by c++.
Build MIA from code. Then edit conf/mia.cfg, correct candidates.
git clone https://github.com/anjisuan783/mia.git
cd mia
./script/buildAll.sh
nohup ./mia -l conf/log4cxx.properties -c conf/mia.cfg &
Start players by http_server which is a very simple http server written by python. Or replace http_server with apache、ngnix etc. The web players pages are located in mia/www/srs_players
./script/http_server.sh
Open https://localhost/ to check if it works.
CentOS 7 supported only now!
[x] Supported protocal
[x] Supported codec
[x] Supported browser
[x] Publishing & playing mode
[ ] H264
[ ] Single udp port for deployment.
[ ] WebRTC pulling
You can publish and playing with SRS players.
class MediaRtcPublisherApi {
public:
virtual ~MediaRtcPublisherApi() = default;
virtual void OnPublish(const std::string& tcUrl, const std::string& stream) = 0;
virtual void OnUnpublish() = 0;
virtual void OnFrame(owt_base::Frame&) = 0;
};
class MediaRtmpPublisherApi {
public:
virtual ~MediaRtmpPublisherApi() = default;
virtual void OnPublish(const std::string& tcUrl, const std::string& stream) = 0;
virtual void OnUnpublish() = 0;
virtual void OnVideo(const uint8_t*, uint32_t len, uint32_t timestamp) = 0;
virtual void OnAudio(const uint8_t*, uint32_t len, uint32_t timestamp) = 0;
};
./rtc_push -l conf/log4cxx.properties -c conf/mia.cfg -s data/avatar_264_1080.flv
./rtmp_push -l conf/log4cxx.properties -c conf/mia.cfg -s data/avatar_264_1080.flv
anjisuan783@sina.com
developing