Skip to content

Commit 0331067

Browse files
committed
chore: enable native player by default
1 parent 5123c44 commit 0331067

File tree

2 files changed

+12
-13
lines changed

2 files changed

+12
-13
lines changed

lib/pages/plugin_editor/plugin_editor_page.dart

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
3030
final TextEditingController refererController = TextEditingController();
3131
bool muliSources = true;
3232
bool useWebview = true;
33-
bool useNativePlayer = false;
33+
bool useNativePlayer = true;
3434
bool usePost = false;
3535
bool useLegacyParser = false;
3636

@@ -73,17 +73,6 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
7373
width: (MediaQuery.of(context).size.width > 1000) ? 1000 : null,
7474
child: Column(
7575
children: [
76-
SwitchListTile(
77-
title: const Text('内置播放器'),
78-
subtitle: const Text('调试时保持禁用'),
79-
value: useNativePlayer,
80-
onChanged: (bool value) {
81-
setState(() {
82-
useNativePlayer = value;
83-
});
84-
},
85-
),
86-
const SizedBox(height: 20),
8776
TextField(
8877
controller: nameController,
8978
decoration: const InputDecoration(
@@ -161,6 +150,16 @@ class _PluginEditorPageState extends State<PluginEditorPage> {
161150
});
162151
},
163152
),
153+
SwitchListTile(
154+
title: const Text('内置播放器'),
155+
subtitle: const Text('使用内置播放器播放视频'),
156+
value: useNativePlayer,
157+
onChanged: (bool value) {
158+
setState(() {
159+
useNativePlayer = value;
160+
});
161+
},
162+
),
164163
const SizedBox(height: 20),
165164
TextField(
166165
controller: userAgentController,

lib/plugins/plugins.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Plugin {
7979
version: '',
8080
muliSources: true,
8181
useWebview: true,
82-
useNativePlayer: false,
82+
useNativePlayer: true,
8383
usePost: false,
8484
useLegacyParser: false,
8585
userAgent: '',

0 commit comments

Comments
 (0)