Skip to content

Commit 9c5442f

Browse files
authored
Apply WebRTC follow-up cleanups
1 parent 601644d commit 9c5442f

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

cpp/open3d/visualization/webrtc_server/PeerConnectionManager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ static bool PeerConnectionHasStreamForWindow(
114114
static webrtc::PeerConnectionFactoryDependencies
115115
CreatePeerConnectionFactoryDependencies(
116116
webrtc::FieldTrials* field_trials) {
117-
(void)field_trials;
118117
webrtc::PeerConnectionFactoryDependencies dependencies;
119118
dependencies.worker_thread = webrtc::Thread::Current();
120119
dependencies.network_thread = nullptr;

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,7 @@ let WebRtcStreamer = (function() {
454454
WebRtcStreamer.prototype.disconnect = function() {
455455
if (this.videoElt) {
456456
this.videoElt.srcObject = null;
457+
this.videoElt.removeAttribute('src');
457458
}
458459
this.remoteStream = null;
459460
if (this.pc) {

0 commit comments

Comments
 (0)