feat: 添加相机捕获功能,更新 H5ShellPage 以支持媒体播放设置

This commit is contained in:
Booker
2026-05-29 12:46:01 +07:00
parent 6b35e80d47
commit 3cb8888497
2 changed files with 69 additions and 2 deletions

View File

@@ -204,6 +204,7 @@ class _H5ShellPageState extends State<H5ShellPage> {
unawaited(
platformController.setOnShowFileSelector(_handleAndroidFileSelection),
);
unawaited(platformController.setMediaPlaybackRequiresUserGesture(false));
}
}
@@ -220,6 +221,7 @@ class _H5ShellPageState extends State<H5ShellPage> {
{
'acceptTypes': params.acceptTypes,
'allowMultiple': params.mode == FileSelectorMode.openMultiple,
'capture': params.isCaptureEnabled,
},
);
return result ?? <String>[];