rework needed

This commit is contained in:
TonyChyi
2022-09-27 10:21:06 +08:00
parent 821c0cffb8
commit 18f5d649d1
9 changed files with 141 additions and 104 deletions

View File

@@ -36,7 +36,7 @@ func (s *Server) exchangeSDP(c *gin.Context) {
return
}
answer, err := s.rtcConnector.Regist(offer)
answer, err := s.RTCConnector.Regist(offer)
if err != nil {
c.JSON(http.StatusInternalServerError, Response{
Succeed: false,

View File

@@ -9,7 +9,7 @@ import (
type Server struct {
options *Options
webServer *gin.Engine
rtcConnector *webrtcconnection.Connection
RTCConnector *webrtcconnection.Connection
}
func NewServer(o *Options) (*Server, error) {
@@ -21,7 +21,7 @@ func NewServer(o *Options) (*Server, error) {
s := &Server{
options: o,
webServer: gin.New(),
rtcConnector: rtc,
RTCConnector: rtc,
}
return s, nil
}