The trackIdentifier property of the RTCVideoSourceStats dictionary contains the id attribute of the associated MediaStreamTrack.
trackIdentifier
RTCVideoSourceStats
id
MediaStreamTrack
A string containing the value of the associated MediaStreamTrack.id.
MediaStreamTrack.id