Skip to content

Commit

Permalink
fix: fixed subtitle delay
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanYuuki committed Feb 4, 2025
1 parent f17e71b commit a699d5f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/screens/anime/watch_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ class _WatchPageState extends State<WatchPage> with TickerProviderStateMixin {
playbackSpeed.value = e;
});
player.stream.subtitle.listen((e) {
Future.delayed(Duration(milliseconds: subtitleDelay.value + 1000), () {
subtitleText.value = e;
});
subtitleText.value = e;
});
}

Expand Down

0 comments on commit a699d5f

Please sign in to comment.