feat: Add IPTV player screen for stream playback with controls, EPG integration, and channel switching.

This commit is contained in:
Michael committed 2025-12-13 13:51:04 +01:00
1 parent 67e59b804c
commit ddc0ea64e0
2 files changed
+134 -23

No files matched your search

+18 -1
View File
@@ -169,6 +169,23 @@
}, '*');
});
// Report user activity (mouse movement or touch) to parent for auto-hide controls
let lastActivityTime = 0;
function reportActivity() {
const now = Date.now();
if (now - lastActivityTime > 100) { // Throttle to 100ms
lastActivityTime = now;
window.parent.postMessage({
type: 'user_activity'
}, '*');
}
}
document.addEventListener('mousemove', reportActivity);
document.addEventListener('touchstart', reportActivity);
document.addEventListener('touchmove', reportActivity);
document.addEventListener('click', reportActivity);
document.addEventListener('touchend', reportActivity);
async function playWithHLS(url) {
log('Trying HLS.js with: ' + url);
showLoading('Loading HLS stream...');
@@ -331,4 +348,4 @@
</script>
</body>
</html>
</html>