Skip to content

Commit

Permalink
webrtc: set capture audio always to true
Browse files Browse the repository at this point in the history
There is no need to have a dedicated option from this feature
as the browser already handle it with a dedicated toggle when available.
  • Loading branch information
Lukinoh committed Oct 30, 2023
1 parent 311cbef commit 815e394
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions internal/core/webrtc_publish_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,7 @@
<input id="audio_voice" type="checkbox" checked>
</div>

<div class="item">
<label for="audio_capture">
capture audio (<a href="https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia#browser_compatibility" target="_blank">support</a>)
</label>
<input id="audio_capture" type="checkbox">
</div>
<div class="item"></div>
</div>

<div id="submit_line" style="display: none">
Expand Down Expand Up @@ -164,7 +159,6 @@
codec: document.getElementById("audio_codec"),
bitrate: document.getElementById("audio_bitrate"),
voice: document.getElementById("audio_voice"),
capture: document.getElementById("audio_capture")
}

const url = new URL(window.location.href);
Expand Down Expand Up @@ -628,7 +622,7 @@
frameRate: { ideal: videoForm.framerate.value },
cursor: "always",
},
audio: audioForm.capture.checked,
audio: true,
})
.then(onTransmit)
.catch((err) => {
Expand Down

0 comments on commit 815e394

Please sign in to comment.