mirror of
https://github.com/R0m1k3/xtremflow.git
synced 2026-10-22 06:28:04 +02:00
feat: Implement IPTV player screen supporting live and VOD streams via iframe.
This commit is contained in:
1 parent
e19f0638f7
commit
4ecfd4f48c
1 file changed
+5
-2
@@ -253,10 +253,13 @@ class _PlayerScreenState extends ConsumerState<PlayerScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _togglePlayPause() {
|
void _togglePlayPause() {
|
||||||
|
// Optimistic update to make UI responsive immediately
|
||||||
|
setState(() => _isPlaying = !_isPlaying);
|
||||||
|
|
||||||
if (_isPlaying) {
|
if (_isPlaying) {
|
||||||
_sendMessage({'type': 'pause'});
|
|
||||||
} else {
|
|
||||||
_sendMessage({'type': 'play'});
|
_sendMessage({'type': 'play'});
|
||||||
|
} else {
|
||||||
|
_sendMessage({'type': 'pause'});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user