Generic Commit; Most likely a fix or small feature
This commit is contained in:
@@ -620,11 +620,11 @@ body {
|
|||||||
<div style="display: flex; gap: 0.5rem;">
|
<div style="display: flex; gap: 0.5rem;">
|
||||||
<button id="toggle-torch-btn" class="btn btn-green" style="flex: 1;">
|
<button id="toggle-torch-btn" class="btn btn-green" style="flex: 1;">
|
||||||
<svg
|
<svg
|
||||||
class="icon-sm"
|
class="icon-sm"
|
||||||
fill="none"
|
fill="none"
|
||||||
stroke="currentColor"
|
stroke="currentColor"
|
||||||
viewBox="0 0 24 24"
|
viewBox="0 0 24 24"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
stroke-linecap="round"
|
stroke-linecap="round"
|
||||||
stroke-linejoin="round"
|
stroke-linejoin="round"
|
||||||
@@ -969,11 +969,6 @@ body {
|
|||||||
await videoTrack.applyConstraints({
|
await videoTrack.applyConstraints({
|
||||||
advanced: [{ torch: torchEnabled } as any]
|
advanced: [{ torch: torchEnabled } as any]
|
||||||
});
|
});
|
||||||
|
|
||||||
const torchBtn = document.getElementById('toggle-torch-btn');
|
|
||||||
if (torchBtn) {
|
|
||||||
torchBtn.textContent = torchEnabled ? 'Torch On' : 'Torch Off';
|
|
||||||
}
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Error toggling torch:', err);
|
console.error('Error toggling torch:', err);
|
||||||
showError('Could not toggle torch. Feature may not be supported.');
|
showError('Could not toggle torch. Feature may not be supported.');
|
||||||
|
|||||||
Reference in New Issue
Block a user