Skip to content

Commit

Permalink
showNotify -> toast
Browse files Browse the repository at this point in the history
  • Loading branch information
orz12 committed Jul 29, 2024
1 parent ab5bb63 commit 3295a9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/plugin/pl_player/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,7 @@ class PlPlayerController {
// }),
// 媒体通知监听
onPlayerStatusChanged.listen((PlayerStatus event) {
SmartDialog.showNotify(
msg: event.toString(), notifyType: NotifyType.success);
SmartDialog.showToast(event.toString());
videoPlayerServiceHandler.onStatusChange();
}),
onPositionChanged.listen((Duration event) {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/audio_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
}

onVideoDetailChange(dynamic data, int cid) {
SmartDialog.showNotify(msg: data.toString(), notifyType: NotifyType.alert);
SmartDialog.showToast("onVideoDetailChange $data");
if (!enableBackgroundPlay) return;
// print('当前调用栈为:');
// print(StackTrace.current);
Expand Down

0 comments on commit 3295a9d

Please sign in to comment.