handles RTC join

This commit is contained in:
David Zhao
2020-10-31 00:09:46 -07:00
parent 36dd195ca3
commit 54b59f00e2
6 changed files with 170 additions and 42 deletions
+14
View File
@@ -0,0 +1,14 @@
package service
import (
"github.com/pion/webrtc/v3"
"github.com/livekit/livekit-server/proto/livekit"
)
func ToProtoSessionDescription(sd *webrtc.SessionDescription) *livekit.SessionDescription {
return &livekit.SessionDescription{
Type: sd.Type.String(),
Sdp: sd.SDP,
}
}