Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1010 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 1010 Bytes

cpp_media_server

A media server is writen by C++11, and the network io is writen by Boost.Asio.

It support rtmp/httpflv/websocket(flv)/webrtc.

preinstall

How to install boost.asio

Download boost

We suggenst boost v1.76: boost v1.76

How to build

Build boost asio in Mac/linux

./bootstrap.sh
./b2 -j 4 --with-system --with-thread --with-date_time --with-regex --with-serialization stage
./b2 install

What does It support

network protocol feature:

webrtc

  • roommanager
  • websocket
  • join
  • publish/unpublish
  • subscribe/unsubscribe

The webrtc client sdk demo: webrtc sdk demo

rtmp

  • rtmp publish
  • rtmp play

httpflv

  • httpflv play
  • flv(h264/vp8/vp9, aac/opus)

websocket

  • flv in websocket push

webcodec encode media in flv(h264+opus) over websocket, we suggest webclient demo: webcodecpush