Skip to content

Commit

Permalink
allow to override setParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Jan 17, 2024
1 parent 96c8eb0 commit 8e19ae0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/peer-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ window.RTCPeerConnection = function (conf, options) {
)
transceiver.sender.setParameters = parameters => {
log(`RTCPeerConnection-${id} transceiver.setParameters`, parameters)
if (window.overrideSetParameters) {
parameters = window.overrideSetParameters(parameters)
}
return setParametersNative(parameters)
}

Expand Down

0 comments on commit 8e19ae0

Please sign in to comment.