notedit / media-server-go

WebRTC media server for go
GNU General Public License v2.0
540 stars 119 forks source link
golang mediaserver rtmp rtp sfu swig unified webrtc

media-server-go

Build Status

WebRTC media server for go

How to use

Read the Tutorial

Yon can see the demos from here Demos

Examples

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.

Thanks