Repository navigation
[Extension Request] flet-media-scanner — Android MediaStore integration (save / list / delete media to Gallery) #6865
|
Hi @FeodorFitsner @ndonkoHenri Use CaseMany Flet apps (downloaders, camera apps, document scanners, etc.) need to save videos, images or audio so they appear in the system Gallery / Photos / Music apps. On modern Android this must be done through MediaStore (Scoped Storage). Writing files directly to public folders no longer makes them visible, and requesting broad storage permissions is discouraged / rejected by Play Store. There is currently no official Flet way to do a clean MediaStore insert. Existing SolutionI built and published a working production extension that solves this:
It uses pure native Kotlin + MediaStore (no third-party Flutter plugins) and currently supports:
RequestWould the core team be interested in either:
I’m happy to maintain it, adjust the API, add images/audio support, improve packaging, or transfer ownership if that helps. Related issue for context: #6648 Thanks! |
Replies: 1 comment
|
I wanted to share a follow-up to the earlier discussion around media-library support in Flet. Since the previous issue, I have continued working on this area and have now built a reusable community package:
It is a Flet service extension for Android and iOS that provides access to the device media library from Python. The package currently supports:
The implementation uses The package also includes a working demo application demonstrating gallery browsing, thumbnails, media playback, camera preview, audio recording, gallery saving, moving, renaming, deletion, and other APIs. Package/repository: I think this is a useful example of how Flet extensions can provide deeper native platform functionality while keeping the application API Python-friendly. I am sharing it here as a follow-up to the earlier discussion so people interested in media access, gallery integration, downloads, media applications, or native Flet extensions can see the current implementation and try it. Feedback, suggestions, and use cases are welcome. |
I wanted to share a follow-up to the earlier discussion around media-library support in Flet.
Since the previous issue, I have continued working on this area and have now built a reusable community package:
flet-media-libraryIt is a Flet service extension for Android and iOS that provides access to the device media library from Python.
The package currently supports: