mirror of
https://github.com/madari-media/madari-oss.git
synced 2026-01-11 22:40:23 +00:00
fix: continue watching
This commit is contained in:
parent
506620bf23
commit
a526760d18
4 changed files with 4 additions and 6 deletions
|
|
@ -18,7 +18,7 @@ MaterialDesktopVideoControlsThemeData getDesktopControls(
|
|||
required Function() onAudioSelect,
|
||||
}) {
|
||||
return MaterialDesktopVideoControlsThemeData(
|
||||
toggleFullscreenOnDoublePress: false,
|
||||
toggleFullscreenOnDoublePress: true,
|
||||
displaySeekBar: true,
|
||||
topButtonBar: [
|
||||
SafeArea(
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ class _SubtitleSelectorState extends State<SubtitleSelector> {
|
|||
void onPlaybackReady(Tracks tracks) {
|
||||
setState(() {
|
||||
subtitles = tracks.subtitle.where((item) {
|
||||
return item.id != "auto";
|
||||
return item.id != "auto" && item.id != "no";
|
||||
}).toList();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,7 @@ class _VideoViewerUiState extends State<VideoViewerUi> {
|
|||
final listenerComplete = widget.player.stream.completed.listen((completed) {
|
||||
if (completed) {
|
||||
widget.onLibrarySelect();
|
||||
key.currentState?.exitFullscreen();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -51,10 +51,7 @@ class TraktContainerState extends State<TraktContainer> {
|
|||
_steam = TraktService.instance?.refetchKey.stream.listen((item) {
|
||||
if (item.contains(widget.loadId)) {
|
||||
_logger.info("refreshing widget ${widget.loadId}");
|
||||
Future.delayed(
|
||||
const Duration(seconds: 1),
|
||||
refresh,
|
||||
);
|
||||
refresh();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue