websocketvideostream
websocketvideostream copied to clipboard
use jsmpeg.js to decode mpeg1 video, use broadway js to decode h264 video, the video stream transported by websocket, and the server wrote by golang.
new socket 2017/10/08 21:23:25 16777216 2017/10/08 21:23:25 http: panic serving 127.0.0.1:23742: runtime error: slice bounds out of range goroutine 32 [running]: net/http.(*conn).serve.func1(0x12827e60) c:/go/src/net/http/server.go:1697 +0x9f panic(0x5eb220, 0x74d3a8) c:/go/src/runtime/panic.go:491 +0x1d0 main.wsH264(0x126602d0) G:/jsh264/websocketvideostream/main.go:43...
Steps to reproduce: Clone repo, go get, go install/go build Place h264 video file in project root, name test.h264 run websocketvideostream in terminal go to localhost:8080/h264/h264.html in browser Canvas loads,...