暂停,需要解决一些问题
This commit is contained in:
@@ -61,7 +61,7 @@ func New(o *Options) (*Connection, error) {
|
||||
}
|
||||
|
||||
func (c *Connection) Regist(offer *webrtc.SessionDescription) (*webrtc.SessionDescription, error) {
|
||||
logrus.Debug("received offer ", offer)
|
||||
logrus.Debug("received offer ")
|
||||
|
||||
rtc, err := c.api.NewPeerConnection(webrtc.Configuration{
|
||||
ICEServers: []webrtc.ICEServer{
|
||||
@@ -78,6 +78,10 @@ func (c *Connection) Regist(offer *webrtc.SessionDescription) (*webrtc.SessionDe
|
||||
logrus.Debug("connection state has changed: ", connectionState.String())
|
||||
})
|
||||
|
||||
rtc.OnICECandidate(func(i *webrtc.ICECandidate) {
|
||||
logrus.Debug("cadidate: ", i)
|
||||
})
|
||||
|
||||
for _, track := range c.stream.GetTracks() {
|
||||
track.OnEnded(func(err error) {
|
||||
logrus.Errorf("Track (ID: %s, kind: %s) ended with error: %v", track.ID(), track.Kind().String(), err)
|
||||
|
Reference in New Issue
Block a user