Skip to content

Commit

Permalink
use recognizeTimestampWatermark for video tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Dec 2, 2023
1 parent 5a5aeae commit 05d3e8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions scripts/end-to-end-stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,11 @@ if (
}
} */

/**
* handleTransceiverForInsertableStreams
* @param {string} id
* @param {RTCRtpTransceiver} transceiver
*/
// eslint-disable-next-line no-unused-vars
const handleTransceiverForInsertableStreams = (id, transceiver) => {
// log(`RTCPeerConnection-${id} handleTransceiver ${transceiver.direction}`)
Expand Down
2 changes: 1 addition & 1 deletion scripts/peer-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ window.RTCPeerConnection = function (options) {
if (timestampInsertableStreams) {
handleTransceiverForInsertableStreams(id, transceiver)
}
if (timestampWatermark) {
if (timestampWatermark && receiver?.track?.kind === 'video') {
window.recognizeTimestampWatermark(
receiver?.track,
({ timestamp, delay }) => {
Expand Down

0 comments on commit 05d3e8a

Please sign in to comment.