afrokick 6 years ago
parent
commit
a4a225e86b
3 changed files with 5 additions and 107 deletions
  1. 1 107
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 4 0
      lib/negotiator.ts

File diff suppressed because it is too large
+ 1 - 107
dist/peerjs.min.js


File diff suppressed because it is too large
+ 0 - 0
dist/peerjs.min.js.map


+ 4 - 0
lib/negotiator.ts

@@ -285,6 +285,10 @@ export class Negotiator {
         }
       }
 
+      if (this.connection.options.sdpTransform && typeof this.connection.options.sdpTransform === 'function') {
+        answer.sdp = this.connection.options.sdpTransform(answer.sdp) || answer.sdp;
+      }
+
       try {
         await peerConnection.setLocalDescription(answer);
 

Some files were not shown because too many files changed in this diff