feat: Add playlist selection screen and basic web IPTV player.

This commit is contained in:
Michael committed 2026-01-01 18:32:39 +01:00
1 parent c165ff5d40
commit 2d418e4e0c
3 files changed
+85 -46

No files matched your search

+13 -3
View File
@@ -157,12 +157,22 @@
// Report on pause and end
video.addEventListener('pause', () => {
window.parent.postMessage({
type: 'playback_position',
currentTime: video.currentTime,
duration: isFinite(video.duration) ? video.duration : 0
type: 'playback_status',
status: 'paused'
}, '*');
});
video.addEventListener('playing', () => {
window.parent.postMessage({
type: 'playback_status',
status: 'playing'
}, '*');
// Also reset reconnect attempts on successful playing
reconnectAttempts = 0;
hideLoading();
});
video.addEventListener('ended', () => {
window.parent.postMessage({
type: 'playback_ended',