Skip to content

please88/rtc-app-golang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtc-app-golang

Golang AppServer for RTC.

You could also write AppServer by following languages:

For RTC deverloper:

Use OpenAPI to create channel:

Token generation algorithm:

Usage

  1. Generate AK from here:
AccessKeyID: OGAEkdiL62AkwSgs
AccessKeySecret: 4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw
  1. Create APP from here:
AppID: iwo5l81k
  1. Setup Golang enviroment, click here.

  2. Start AppServer, use your information:

go get -d github.com/winlinvip/rtc-app-golang &&
cd $GOPATH/src/github.com/winlinvip/rtc-app-golang &&
go run main.go --listen=8080 --access-key-id=OGAEkdiL62AkwSgs \
	--access-key-secret=4JaIs4SG4dLwPsQSwGAHzeOQKxO6iw --appid=iwo5l81k \
	--gslb=https://rgslb.rtc.aliyuncs.com
  1. Verify your AppServer by here or verify token.

AppServer Success

AppServer Failed

AppServer Error Recovered

Remark: You can setup client native SDK by http://30.2.228.19:8080/app/v1.

Remark: Please use your AppServer IP instead by ifconfig eth0.

History

  • 2822108, Update SessionID generation algorithm.
  • a1b5c9d, Use HTTP, x3 times faster than HTTPS.
  • 8e2761c, 19c59e3, Set endpoint to get correct error.
  • f41b7cd, Log the request id and cost in ms.
  • 4b256ca, Support recover for some OpenAPI error.
  • Support create channel and sign user token.

About

Golang AppServer for RTC.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%