Store initial track MimeType in TrackInfo (#1065)

This commit is contained in:
David Zhao
2022-09-30 23:33:22 -07:00
committed by GitHub
parent 716f27c435
commit 02537a121d
3 changed files with 20 additions and 2 deletions
+1
View File
@@ -1677,6 +1677,7 @@ func (p *ParticipantImpl) mediaTrackReceived(track *webrtc.TrackRemote, rtpRecei
return nil, false
}
ti.MimeType = track.Codec().MimeType
mt = p.addMediaTrack(signalCid, track.ID(), ti)
newTrack = true
}