Giter Site home page Giter Site logo

media_scanner's Introduction

Media Scanner (Android Only) pub package License: MIT Build Status

This library help you to refresh Gallery after you save Media like Photo and Video. You need to do this to make your Photo/Video show in Gallery without reboot your phone.

Usage Examples

MediaScanner.loadMedia(path: "media_path");

Buy me coffee if you love my works ☕️

ko-fi      buymeacoffe      paypal



media_scanner's People

Contributors

lzyct avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

media_scanner's Issues

No implemented error at pod install

It is specified that the plugin only works on android but when working on a Ios/Android app it should run

[!] No podspec found for `media_scanner` in `.symlinks[/plugins/media_scanner/ios]()`
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/external_sources/path_source.rb:14]():in `block in fetch'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64]():in `section'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:970]():in `fetch_external_sources'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer/analyzer.rb:117]():in `analyze'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:416]():in `analyze'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:241]():in `block in resolve_dependencies'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface.rb:64]():in `section'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:240]():in `resolve_dependencies'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/installer.rb:161]():in `install!'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command/install.rb:52]():in `run'
    [/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334]():in `run'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/command.rb:52]():in `run'
    [/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/bin/pod:55]():in `<top (required)>'
    [/usr/local/bin/pod:23]():in `load'
    [/usr/local/bin/pod:23]():in `<main>'

Images saved not showing in gallery flutter

Hi. I'm using media scanner package. and I give right path to package to refresh the gallery like this:
storage/emulated/0/folderName/imageName.jpg
package shows success message but in gallery, no images were displayed.

I run app in real device on android 7.0
flutter sdk version: 2.10.5
jdk version: 8
media_scanner version: 2.1.0

manifest permissions:
<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.READ_SMS"/> <uses-permission android:name="android.permission.SEND_SMS"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

loadMedia doesn't await properly

Even if you await loadMedia, it still seems to return even when it hasn't finished. It gets really noticeable when deleting a lot of media files (tested around 200) on a relatively slow device. I had to use await Future.delayed() after every loadMedia just to prevent it from bottlenecking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.