Add Version to TrackInfo. (#2324)

* Add Version to TrackInfo.

Set when a track is published.

* update protocol
This commit is contained in:
Raja Subramanian
2023-12-19 11:50:48 +05:30
committed by GitHub
parent 5ee307952e
commit 37539fdf76
7 changed files with 160 additions and 18 deletions
+1
View File
@@ -1824,6 +1824,7 @@ func (p *ParticipantImpl) mediaTrackReceived(track *webrtc.TrackRemote, rtpRecei
}
ti.MimeType = track.Codec().MimeType
ti.Version = p.params.VersionGenerator.New().ToProto()
mt = p.addMediaTrack(signalCid, track.ID(), ti)
newTrack = true
p.dirty.Store(true)