Skip to content
/ go-sharp Public
forked from ossrs/go-sharp

The go-sharp(go-srs-http-advanced-reverse-proxy) is the proxy for SRS HTTP FLV.

License

Notifications You must be signed in to change notification settings

wbinn/go-sharp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-sharp

The go-sharp(go-srs-http-advanced-reverse-proxy) is the proxy for SRS HTTP FLV.

Usage

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.

Features

  • 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.

Performance

Comming soon ...

IDE

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

About

The go-sharp(go-srs-http-advanced-reverse-proxy) is the proxy for SRS HTTP FLV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%