daozhao / apprtc-go Goto Github PK
View Code? Open in Web Editor NEWapprtc demo with golang.It's rewrite project WebRTC(https://github.com/webrtc/apprtc) with golang
License: BSD 3-Clause "New" or "Revised" License
apprtc demo with golang.It's rewrite project WebRTC(https://github.com/webrtc/apprtc) with golang
License: BSD 3-Clause "New" or "Revised" License
我在apprt.go里面看到了关于client,room,roomtable新结构体,这样的话就有两个声明了,到底实行的是什么呢??
apprtc.go是不是就包括了信令服务器和房间服务器的内容了???
2018/05/15 13:17:19 roomPageHandler host: localhost:8080 url: /r/746761393? path: /r/746761393 raw query:
2018/05/15 13:17:19 room page room_id: 746761393
2018/05/15 13:17:19 http: panic serving [::1]:50901: runtime error: invalid memory address or nil pointer dereference
goroutine 117 [running]:
net/http.(*conn).serve.func1(0xc420079540)
/usr/local/go/src/net/http/server.go:1697 +0xd0
panic(0x1352780, 0x15a1460)
/usr/local/go/src/runtime/panic.go:491 +0x283
html/template.(*Template).escape(0x0, 0x0, 0x0)
/usr/local/go/src/html/template/template.go:95 +0x38
html/template.(*Template).Execute(0x0, 0x1571980, 0xc4204748c0, 0x0, 0x0, 0xc4205197e0, 0xffffffffffffffff)
/usr/local/go/src/html/template/template.go:119 +0x2f
main.roomPageHandler(0x15760c0, 0xc4204748c0, 0xc420177000)
/Users/jorgenteunis/go/src/github.com/daozhao/apprtc-go/apprtc.go:262 +0x5e7
net/http.HandlerFunc.ServeHTTP(0x13cfea8, 0x15760c0, 0xc4204748c0, 0xc420177000)
/usr/local/go/src/net/http/server.go:1918 +0x44
net/http.(*ServeMux).ServeHTTP(0xc42007eff0, 0x15760c0, 0xc4204748c0, 0xc420177000)
/usr/local/go/src/net/http/server.go:2254 +0x130
net/http.serverHandler.ServeHTTP(0xc420081380, 0x15760c0, 0xc4204748c0, 0xc420177000)
/usr/local/go/src/net/http/server.go:2619 +0xb4
net/http.(*conn).serve(0xc420079540, 0x1576700, 0xc42012e180)
/usr/local/go/src/net/http/server.go:1801 +0x71d
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2720 +0x288
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.