Skip to content

Commit 693029c

Browse files
author
liuchuancong
committed
fix(changeLine)
1 parent 88177c5 commit 693029c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/modules/live_play/widgets/video_player/video_controller.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ class VideoController with ChangeNotifier {
160160
globalPlayer.onError.listen((error) {
161161
if (error != null) {
162162
log("An error occured while loading the stream: $error", error: error, name: "VideoController");
163+
if (error.contains("Failed to open")) {
164+
SmartDialog.showToast("当前视频播放出错,正在切换线路");
165+
changeLine();
166+
}
163167
}
164168
});
165169
Future.delayed(Duration(milliseconds: 1000), () {

0 commit comments

Comments
 (0)