Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +4 -4
templates/index.html
CHANGED
|
@@ -818,10 +818,10 @@
|
|
| 818 |
document.getElementById('tBtn').classList.add('opacity-50');
|
| 819 |
document.getElementById('oBtn').classList.remove('opacity-50');
|
| 820 |
document.getElementById('liveBadge').innerHTML = '<span class="w-2 h-2 rounded-full bg-red-500 animate-pulse shadow-[0_0_8px_red]"></span> LIVE AI FEED';
|
| 821 |
-
await fetch(`/
|
| 822 |
method: 'POST',
|
| 823 |
headers: {'Content-Type': 'application/json'},
|
| 824 |
-
body: JSON.stringify({track: true})
|
| 825 |
});
|
| 826 |
}
|
| 827 |
|
|
@@ -829,10 +829,10 @@
|
|
| 829 |
document.getElementById('oBtn').classList.add('opacity-50');
|
| 830 |
document.getElementById('tBtn').classList.remove('opacity-50');
|
| 831 |
document.getElementById('liveBadge').innerHTML = '<span class="w-2 h-2 rounded-full bg-blue-500 shadow-[0_0_8px_blue]"></span> RAW FEED';
|
| 832 |
-
await fetch(`/
|
| 833 |
method: 'POST',
|
| 834 |
headers: {'Content-Type': 'application/json'},
|
| 835 |
-
body: JSON.stringify({track: false})
|
| 836 |
});
|
| 837 |
}
|
| 838 |
|
|
|
|
| 818 |
document.getElementById('tBtn').classList.add('opacity-50');
|
| 819 |
document.getElementById('oBtn').classList.remove('opacity-50');
|
| 820 |
document.getElementById('liveBadge').innerHTML = '<span class="w-2 h-2 rounded-full bg-red-500 animate-pulse shadow-[0_0_8px_red]"></span> LIVE AI FEED';
|
| 821 |
+
await fetch(`/video_control/${streamId}`, {
|
| 822 |
method: 'POST',
|
| 823 |
headers: {'Content-Type': 'application/json'},
|
| 824 |
+
body: JSON.stringify({action: 'toggle_tracking', track: true})
|
| 825 |
});
|
| 826 |
}
|
| 827 |
|
|
|
|
| 829 |
document.getElementById('oBtn').classList.add('opacity-50');
|
| 830 |
document.getElementById('tBtn').classList.remove('opacity-50');
|
| 831 |
document.getElementById('liveBadge').innerHTML = '<span class="w-2 h-2 rounded-full bg-blue-500 shadow-[0_0_8px_blue]"></span> RAW FEED';
|
| 832 |
+
await fetch(`/video_control/${streamId}`, {
|
| 833 |
method: 'POST',
|
| 834 |
headers: {'Content-Type': 'application/json'},
|
| 835 |
+
body: JSON.stringify({action: 'toggle_tracking', track: false})
|
| 836 |
});
|
| 837 |
}
|
| 838 |
|