mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-11 17:30:00 +02:00
feat: Add IPTV player screen with live stream FFmpeg transcoding, playback position tracking, and new dashboard and digital clock widgets.
This commit is contained in:
1 parent
0793a90ad8
commit
d056877b9e
4 files changed
+68
-2
No files matched your search
@@ -166,6 +166,18 @@
|
||||
}, '*');
|
||||
});
|
||||
|
||||
// Report user activity (mouse movement) to parent
|
||||
let lastActivityTime = 0;
|
||||
document.addEventListener('mousemove', () => {
|
||||
const now = Date.now();
|
||||
if (now - lastActivityTime > 100) { // Throttle to 100ms
|
||||
lastActivityTime = now;
|
||||
window.parent.postMessage({
|
||||
type: 'user_activity'
|
||||
}, '*');
|
||||
}
|
||||
});
|
||||
|
||||
// Seek to startTime when video is ready
|
||||
video.addEventListener('loadedmetadata', () => {
|
||||
if (startTime > 0 && startTime < video.duration) {
|
||||
|
||||
Reference in new issue
Block a user