Skip to content

Commit

Permalink
Merge pull request #1682 from webrtc/timestamp-woes
Browse files Browse the repository at this point in the history
e2ee: prefer metadata rtpTimestamp over encodedFrame.timestamp
  • Loading branch information
fippo authored Nov 8, 2024
2 parents 6a6b950 + 2d67173 commit 9d01559
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function dump(encodedFrame, direction, max = 16) {
console.log(performance.now().toFixed(2), direction, bytes.trim(),
'len=' + encodedFrame.data.byteLength,
'type=' + (encodedFrame.type || 'audio'),
'ts=' + encodedFrame.timestamp,
'ts=' + (metadata.rtpTimestamp || encodedFrame.timestamp),
'ssrc=' + metadata.synchronizationSource,
'pt=' + (metadata.payloadType || '(unknown)'),
'mimeType=' + (metadata.mimeType || '(unknown)'),
Expand Down

0 comments on commit 9d01559

Please sign in to comment.