Show 'Loading...' text when clicking play button on WebRTC player
All checks were successful
Test and Publish Templates / test-and-publish (push) Successful in 22s

This commit is contained in:
Your Name
2025-09-02 12:35:06 +12:00
parent f51edd4c6c
commit a2c82d66d0

View File

@@ -191,8 +191,12 @@
// Add click handlers to both overlay and video
const startPlayback = () => {
playOverlay.innerHTML = 'Loading...';
video.play().then(() => {
playOverlay.style.display = 'none';
}).catch(e => {
playOverlay.innerHTML = '▶️ Click to Play';
console.error('Failed to start playback:', e);
});
video.onclick = null;
playOverlay.onclick = null;