afrokick 6 年之前
父節點
當前提交
a4a225e86b
共有 3 個文件被更改,包括 5 次插入107 次删除
  1. 1 107
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 4 0
      lib/negotiator.ts

文件差異過大導致無法顯示
+ 1 - 107
dist/peerjs.min.js


文件差異過大導致無法顯示
+ 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);
 

部分文件因文件數量過多而無法顯示