The go-sharp(go-srs-http-advanced-reverse-proxy) is the proxy for SRS HTTP FLV.
Step 1: Setup GO env.
About how to set $GOPATH, read prepare go.
Step 2: Get go-sharp and build it.
To clone from github, build, install to $GOPATH and build go-sharp:
go get github.com/simple-rtmp-server/go-sharp
Step 3: Start go-sharp proxy.
For linux or unix:
$GOPATH/bin/go-sharp 8088 8 8080,8081,8082
Or, for windows:
%GOPATH%\bin\go-sharp.exe 8088 8 8080,8081,8082
Step 4: Start SRS HTTP FLV cluster.
About how to start HTTP FLV cluster of SRS, read wiki(CN, EN)
Step 5: Play the proxy HTTP FLV stream.
The HTTP FLV streams:
SRS Origin: http://127.0.0.1:8080/live/livestream.flv
SRS Edge1: http://127.0.0.1:8081/live/livestream.flv
SRS Edge2: http://127.0.0.1:8082/live/livestream.flv
go-sharp proxy: http://127.0.0.1:8088/live/livestream.flv
You can use vlc or online jwplayer players to play SRS Origin, SRS Edge1, SRS Edge2 and go-sharp proxy.
Remark: Please replace the server ip by yours.
- Reverse HTTP proxy for SRS HTTP FLV cluster.
- Load balance for these proxe SRS server.
- Auto detect the alive of proxy SRS server.
- [plan] Auto detect the load of proxy SRS server.
- [plan] HLS DRM token, generate and verify the token in ts url.
Comming soon ...
Go: http://www.golangtc.com/download
JetBrains IntelliJ IDEA: http://www.jetbrains.com/idea/download
Idea Plugin: https://github.com/go-lang-plugin-org/go-lang-idea-plugin
Winlin 2015.5