feat(player): 保持屏幕常亮并自动恢复播放
This commit is contained in:
1 parent
5bf10221a8
commit
a25c500371
7 files changed
+273
-1
No files matched your search
@@ -20,6 +20,7 @@ final class RunnerFlutterViewController: FlutterViewController {
|
||||
_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
|
||||
) -> Bool {
|
||||
UIApplication.shared.isIdleTimerDisabled = true
|
||||
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user