Skip to content
This repository has been archived by the owner on Feb 14, 2022. It is now read-only.

Commit

Permalink
修复切换播放时的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
januwA committed Jun 15, 2019
1 parent dc56f58 commit c0f7114
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/pages/detail_page/detail_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ class _DetailPageState extends State<DetailPage> {
void dispose() {
super.dispose();
videoCtrl?.removeListener(videoListenner);
videoCtrl?.pause();
videoCtrl?.dispose();
if (isFullScreen) {
setPortrait();
Expand Down Expand Up @@ -396,6 +397,7 @@ class _DetailPageState extends State<DetailPage> {
currentPlayIndex = index;
isShowVideoControllers = true;
});
videoCtrl.pause();
getVideoSrc();
}
},
Expand Down

0 comments on commit c0f7114

Please sign in to comment.