File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -494,7 +494,7 @@ class Signaling {
494494 try {
495495 RTCSessionDescription s =
496496 await session.pc! .createOffer (media == 'data' ? _dcConstraints : {});
497- await session.pc! .setLocalDescription (s );
497+ await session.pc! .setLocalDescription (_fixSdp (s) );
498498 _send ('offer' , {
499499 'to' : session.pid,
500500 'from' : _selfId,
@@ -507,11 +507,18 @@ class Signaling {
507507 }
508508 }
509509
510+ RTCSessionDescription _fixSdp (RTCSessionDescription s) {
511+ var sdp = s.sdp;
512+ s.sdp =
513+ sdp! .replaceAll ('profile-level-id=640c1f' , 'profile-level-id=42e032' );
514+ return s;
515+ }
516+
510517 Future <void > _createAnswer (Session session, String media) async {
511518 try {
512519 RTCSessionDescription s =
513520 await session.pc! .createAnswer (media == 'data' ? _dcConstraints : {});
514- await session.pc! .setLocalDescription (s );
521+ await session.pc! .setLocalDescription (_fixSdp (s) );
515522 _send ('answer' , {
516523 'to' : session.pid,
517524 'from' : _selfId,
You can’t perform that action at this time.
0 commit comments