Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaDirType.ASSETS not working @3.0.0-beta.0 #82

Closed
takapiroid88 opened this issue Jul 12, 2022 · 1 comment
Closed

MediaDirType.ASSETS not working @3.0.0-beta.0 #82

takapiroid88 opened this issue Jul 12, 2022 · 1 comment

Comments

@takapiroid88
Copy link

takapiroid88 commented Jul 12, 2022

directory

project_folder
- assets
    - audio
        - flutter_sample.mp3

pubspec.yaml

flutter:
  assets:
    - assets/
    - assets/audio/  

code

  final _query = OnAudioQuery();
  _query
      .querySongs(filter: MediaFilter.init(dirType: MediaDirType.ASSETS))
      .then(
    (value) {
      var titles = value.map((v) => v.title).toList();
      print("MediaDir Assets songs: $titles");
    },
  );

expected: output title -> flutter_sample.mp3
result: output none

how to get my flutter assets mp3.

OS: Android11

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.4 21F79 darwin-x64, locale ja-JP) Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.68.0)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!

@LucJosin
Copy link
Owner

Status of 3.0.0-beta.0 - #119

@LucJosin LucJosin closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants