diff --git a/lib/pages/video/video_page.dart b/lib/pages/video/video_page.dart index 695e103..997d80e 100644 --- a/lib/pages/video/video_page.dart +++ b/lib/pages/video/video_page.dart @@ -154,6 +154,9 @@ class _VideoPageState extends State } historyController.updateHistory( videoController.link, videoController.currentPosition.inSeconds); + videoController.playing = false; + videoController.currentPosition = Duration.zero; + videoController.duration = Duration.zero; if (Platform.isWindows || Platform.isMacOS || Platform.isLinux) { windowManager.setAlwaysOnTop(false); windowManager.removeListener(this); diff --git a/lib/request/api.dart b/lib/request/api.dart index ade4109..8f193b4 100644 --- a/lib/request/api.dart +++ b/lib/request/api.dart @@ -4,7 +4,7 @@ class Api { static const String domain = HttpString.baseUrl + '/'; static const String animeList = 'https://d1zquzjgwo9yb.cloudfront.net/'; static const String videoAPI = 'https://v.anime1.me/api'; - static const String version = '1.2.3'; + static const String version = '1.2.4'; static const String sourceUrl = "https://github.com/Predidit/oneAnime"; static const String aniDanmakuAPI = "https://ani.gamer.com.tw/ajax/danmuGet.php"; static const String aniSearch = "https://ani.gamer.com.tw/search.php"; diff --git a/pubspec.yaml b/pubspec.yaml index b08c1c6..b3a1d8b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.2.3+1 +version: 1.2.4+1 environment: sdk: '>=3.2.6 <4.0.0'