Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

chore: enable native player by default

Predidit0331067d66ac
diff --git a/lib/pages/plugin_editor/plugin_editor_page.dart b/lib/pages/plugin_editor/plugin_editor_page.dart
index 2646c889..96273ee8 100644
--- a/lib/pages/plugin_editor/plugin_editor_page.dart
+++ b/lib/pages/plugin_editor/plugin_editor_page.dart
@@ -30,7 +30,7 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
final TextEditingController refererController = TextEditingController();
bool muliSources = true;
bool useWebview = true;
- bool useNativePlayer = false;
+ bool useNativePlayer = true;
bool usePost = false;
bool useLegacyParser = false;
@@ -73,17 +73,6 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
width: (MediaQuery.of(context).size.width > 1000) ? 1000 : null,
child: Column(
children: [
- SwitchListTile(
- title: const Text('内置播放器'),
- subtitle: const Text('调试时保持禁用'),
- value: useNativePlayer,
- onChanged: (bool value) {
- setState(() {
- useNativePlayer = value;
- });
- },
- ),
- const SizedBox(height: 20),
TextField(
controller: nameController,
decoration: const InputDecoration(
@@ -161,6 +150,16 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
});
},
),
+ SwitchListTile(
+ title: const Text('内置播放器'),
+ subtitle: const Text('使用内置播放器播放视频'),
+ value: useNativePlayer,
+ onChanged: (bool value) {
+ setState(() {
+ useNativePlayer = value;
+ });
+ },
+ ),
const SizedBox(height: 20),
TextField(
controller: userAgentController,
diff --git a/lib/plugins/plugins.dart b/lib/plugins/plugins.dart
index 2e07f18e..b30c5e57 100644
--- a/lib/plugins/plugins.dart
+++ b/lib/plugins/plugins.dart
@@ -79,7 +79,7 @@ class Plugin {
version: '',
muliSources: true,
useWebview: true,
- useNativePlayer: false,
+ useNativePlayer: true,
usePost: false,
useLegacyParser: false,
userAgent: '',