- just in develop!
go get -u -v github.com/gorilla/websocket
go get -u -v github.com/google/flatbuffers/go
https://github.com/gorilla/websocket
Set config file conf/config.conf
[ServerSet]
daemon=127.0.0.1 // for you daemon
port=18080 // you port number
change Main.go
func main() {
start_sever()
// or
//start_comamd()
}
- Run
go run Main.go
- Server Address will show in command
- Web Client URL will show in command
/connect ws://youdaemon:yourport
go run cli.go
-
jsmpeg.js is from https://github.com/phoboslab/jsmpeg
-
broadway js is from https://github.com/mbebenita/Broadway
See in URL
http://127.0.0.1:18080/h264/h264.html
http://127.0.0.1:18080/mpeg1/mpeg1.html
if you change [conf/config.conf] you must change daemon