Skip to content

Commit

Permalink
e2ee: prefer metadata rtpTimestamp over encodedFrame.timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
fippo committed Oct 21, 2024
1 parent 6a6b950 commit 2d67173
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 2d67173

Please sign in to comment.