support access token via query params

This commit is contained in:
David Zhao
2020-12-27 23:04:20 -08:00
parent 3fb606236e
commit 60f2596983
3 changed files with 11 additions and 3 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ func NewRTCService(conf *config.Config, manager *rtc.RoomManager) *RTCService {
}
func (s *RTCService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
roomId := r.FormValue("room_id")
roomId := r.FormValue("room")
var pName string
if s.isDev {
r.FormValue("name")