Merge pull request #69 from R0m1k3/antigravity

feat: implement IPTV player with HLS.js and mpegts.js, supporting str…
This commit is contained in:
LogiFlow authored and GitHub committed 2025-12-07 10:21:05 +01:00
commit 3daf09333f
2 files changed
+24 -1

No files matched your search

@@ -417,6 +417,29 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
// HTML5 video player via iframe
HtmlElementView(viewType: _viewId),
// GLOBAL INTERACTION LAYER (Fixes Click/Hover issues)
// This transparent layer sits ABOVE the iframe but BELOW the controls.
// It intercepts all pointer events, enabling Flutter to handle them.
Positioned.fill(
child: PointerInterceptor(
child: MouseRegion(
onHover: (_) => _onHover(),
child: GestureDetector(
// Toggle controls on tap
onTap: () {
if (_showControls) {
_hideControls();
} else {
_onHover();
}
},
behavior: HitTestBehavior.translucent,
child: Container(color: Colors.transparent),
),
),
),
),
// Hover Controls Layer
if (_showControls) ...[
// Previous Channel (Left Top Zone)
+1 -1
View File
@@ -97,7 +97,7 @@
<body>
<div id="player-container">
<video id="video" controls autoplay></video>
<video id="video" autoplay></video>
<div id="loading">
<div class="spinner"></div>
<div id="loading-text">Loading stream...</div>