Skip to content

Commit 601644d

Browse files
authored
Remove stale WebRTC peer connection options
1 parent 66a87d1 commit 601644d

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

cpp/open3d/visualization/webrtc_server/html/webrtcstreamer.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ let WebRtcStreamer = (function() {
3737
this.pc = null;
3838
this.dataChannel = null;
3939

40-
this.pcOptions = {optional: [{DtlsSrtpKeyAgreement: true}]};
41-
4240
this.mediaConstraints = {
4341
offerToReceiveAudio: true,
4442
offerToReceiveVideo: true,
@@ -614,8 +612,7 @@ let WebRtcStreamer = (function() {
614612
WebRtcStreamer.prototype.createPeerConnection = function() {
615613
console.log(
616614
'createPeerConnection config: ' +
617-
JSON.stringify(this.pcConfig) +
618-
' option:' + JSON.stringify(this.pcOptions));
615+
JSON.stringify(this.pcConfig));
619616
this.pc = new RTCPeerConnection(this.pcConfig);
620617
var pc = this.pc;
621618
pc.peerid = Math.random();
@@ -719,8 +716,7 @@ let WebRtcStreamer = (function() {
719716

720717
console.log(
721718
'Created RTCPeerConnection with config: ' +
722-
JSON.stringify(this.pcConfig) +
723-
'option:' + JSON.stringify(this.pcOptions));
719+
JSON.stringify(this.pcConfig));
724720
return pc;
725721
};
726722

0 commit comments

Comments
 (0)