Compare commits

...

2 Commits

Author SHA1 Message Date
Yaros
5dc960b872 refactor: one line
Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
2025-12-09 18:48:16 +01:00
Yaros
147cdfa1e2 fix(mobile): videos with '#' don't play on android 2025-12-03 22:27:09 +01:00

View File

@@ -104,7 +104,9 @@ class NativeVideoViewer extends HookConsumerWidget {
throw Exception('No file found for the video');
}
final source = await VideoSource.init(path: file.path, type: VideoSourceType.file);
// Pass a file:// URI so Android's Uri.parse doesn't
// interpret characters like '#' as fragment identifiers.
final source = await VideoSource.init(path: file.uri.toString(), type: VideoSourceType.file);
return source;
}