Skip to content

suhanlee/go-rtmp-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Golang rtmp server demo

This is a very tiny demo with rtmp protocol server/client side implement.

Requirement

You need golang to build all tools.

Simple Client, Server Test (Mac)

$ $GOPATH/bin/go-rtmp-server -l :8089 -k test &
...
$ ./live.sh test

Install

go get -u -v github.com/netroby/go-rtmp-server

~/go/bin/go-rtmp-server  -l :8089 -k  longSecurityKey

Usage

now you can using obs to push stream to rtmp server

the stream url maybe rtmp:https://your.domain.host/live?key=longSecurityKey

You can using obs to stream

Now you may visit the demo at

http:https://your.domain.host:8089/

the :8089 is the default listen port of the http server. and you can change it as you want

Usage of .\go-rtmp-server.exe:
  -k string
        Stream key, to protect your stream
  -l string
        host:port of the go-rtmp-server (default ":8089")

About

rtmp server by golang, with flv support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 85.3%
  • Shell 14.7%