Skip to content

Commit

Permalink
mod: 视频暂停时,不自动pip issues guozhigq#379
Browse files Browse the repository at this point in the history
  • Loading branch information
guozhigq committed Jan 2, 2024
1 parent 4ca0217 commit b738953
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/pages/video/detail/view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ class _VideoDetailPageState extends State<VideoDetailPage>
void _handleTransition(String name) {
switch (name) {
case 'inactive':
autoEnterPip();
if (plPlayerController != null &&
playerStatus == PlayerStatus.playing) {
autoEnterPip();
}
break;
}
}
Expand Down

0 comments on commit b738953

Please sign in to comment.