Populate network field when set by clients (#919)
This commit is contained in:
@@ -815,7 +815,7 @@ func (t *PCTransport) OnAnswer(f func(sd webrtc.SessionDescription)) {
|
||||
t.onAnswer = f
|
||||
}
|
||||
|
||||
func (t *PCTransport) OnRemoteDescripitonSettled(f func() error) {
|
||||
func (t *PCTransport) OnRemoteDescriptionSettled(f func() error) {
|
||||
t.lock.Lock()
|
||||
t.onRemoteDescriptionSettled = f
|
||||
t.lock.Unlock()
|
||||
|
||||
@@ -92,7 +92,7 @@ func NewTransportManager(params TransportManagerParams) (*TransportManager, erro
|
||||
return nil, err
|
||||
}
|
||||
t.publisher = publisher
|
||||
t.publisher.OnRemoteDescripitonSettled(t.createPublisherAnswerAndSend)
|
||||
t.publisher.OnRemoteDescriptionSettled(t.createPublisherAnswerAndSend)
|
||||
t.publisher.OnInitialConnected(func() {
|
||||
if !t.params.SubscriberAsPrimary && t.onPrimaryTransportInitialConnected != nil {
|
||||
t.onPrimaryTransportInitialConnected()
|
||||
|
||||
Reference in New Issue
Block a user