media-server-go
WebRTC media server for go
How to use
Yon can see the demos from here Demos
Examples
- WebRTC-Broadcast: WebRTC publish and play
- Raw-RTP-Input: Send raw rtp data into webrtc
- WebRTC-Record: WebRTC record
- RTMP-To-WebRTC: Rtmp to webrtc
- Server-To-Server: WebRTC server relay
- WebRTC-To-RTMP: WebRTC to rtmp
- WebRTC-To-HLS: WebRTC to hls
Install
media-server-go
is not go getable, so you should clone it and build it yourself.
You should install libtool
and autoconf
automake
before you build
On ubuntu
apt install autoconf
apt install libtool
apt install automake
On macOS
brew install libtool
brew install autoconf
brew install automake
Your compiler should support c++17
, for linux, you should update your gcc/g++
to 7.0+
for macos, clang should support c++17
.
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update -qq
sudo apt-get install g++-7
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 90
git clone --recurse-submodules https://github.com/notedit/media-server-go.git
cd media-server-go
make
go install
then you can use media-server-go in your project.