afrokick 6 năm trước cách đây
mục cha
commit
a4a225e86b
3 tập tin đã thay đổi với 5 bổ sung107 xóa
  1. 1 107
      dist/peerjs.min.js
  2. 0 0
      dist/peerjs.min.js.map
  3. 4 0
      lib/negotiator.ts

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 107
dist/peerjs.min.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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);
 

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác