rework needed
This commit is contained in:
@@ -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,
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user