We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf41a9f commit b9878b4Copy full SHA for b9878b4
2 files changed
lib/modules/live_play/widgets/video_player/video_controller.dart
@@ -355,7 +355,6 @@ class VideoController with ChangeNotifier {
355
Future<void> destory() async {
356
if (Platform.isAndroid || Platform.isIOS) {
357
if (allowScreenKeepOn) WakelockPlus.disable();
358
- brightnessController.resetApplicationScreenBrightness();
359
_subscription.cancel();
360
_volumeController.removeListener();
361
}
lib/modules/live_play/widgets/video_player/video_player.dart
@@ -49,8 +49,6 @@ class _VideoPlayerState extends State<VideoPlayer> with WidgetsBindingObserver {
49
player.pause();
50
51
} else {
52
- // 2. 如果开启了后台播放,务必显式再次调用 resume/play
53
- // 这是为了防止某些设备在失去 Surface 的瞬间自动暂停
54
player.resume();
55
56
} else if (state == AppLifecycleState.resumed) {
0 commit comments