Browse Source

Remove dead code.

feature/data-first
Daniel Perelman 4 months ago
parent
commit
581978335e
1 changed files with 1 additions and 8 deletions
  1. +1
    -8
      camera/templates/index.html

+ 1
- 8
camera/templates/index.html View File

@@ -269,7 +269,7 @@ form label {
log("Data channel open, sending settings...")
settings = readSettingsForm(true);
sendJson({settings});
startStartingWithErorrHandling(false);
startStreamingWithErorrHandling(false);
}
}

@@ -350,9 +350,6 @@ form label {
if (data.ready) {
// Ready message means client is open and ready for connection.
pc = createRTCPeerConnection();
} else if (data.requestSettings) {
settings = readSettingsForm(true);
startStreamingWithErorrHandling(false);
} else if (data.settings) {
settings = data.settings;
startStreamingWithErorrHandling(false);
@@ -364,10 +361,6 @@ form label {
await pc.setLocalDescription(await pc.createAnswer());
sendOffer();
}
} else if (data.candidate) {
if (pc == undefined) pc = createRTCPeerConnection();
log("Adding ice candidate...");
await pc.addIceCandidate(data.candidate);
}
};



Loading…
Cancel
Save