StreamAI / scripts /video.js
privateuserh's picture
Update scripts/video.js
693b035 verified
raw
history blame
430 Bytes
// scripts/video.js
const getElement = (id) => document.getElementById(id);
export function initVideo() {
const startBtn = getElement('start-recording');
// The error happened here. Now the button should be found.
if (startBtn) {
startBtn.addEventListener('click', () => {
alert('Start Recording button clicked!');
// The actual video recording logic would go here
});
}
}