Manual negotiation and plan-b support

This commit is contained in:
David Zhao
2021-04-16 00:56:25 -07:00
parent 04f6b61ae1
commit 93d10b2640
16 changed files with 231 additions and 64 deletions
+1
View File
@@ -414,6 +414,7 @@ func (c *RTCClient) AddTrack(track *webrtc.TrackLocalStaticSample, path string)
if _, err = c.publisher.PeerConnection().AddTrack(track); err != nil {
return
}
c.publisher.Negotiate()
writer = NewTrackWriter(c.ctx, track, path)
// write tracks only after ICE connectivity