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

[How to Use] Failed to get the video #1082

Closed
k-theo opened this issue Feb 7, 2024 · 4 comments
Closed

[How to Use] Failed to get the video #1082

k-theo opened this issue Feb 7, 2024 · 4 comments

Comments

@k-theo
Copy link

k-theo commented Feb 7, 2024

Version

3.0.0-ver.5

Platforms

Android

Device Model

Galaxy S23

flutter info

[✓] Flutter (Channel stable, 3.16.5, on macOS 14.2 23C64 darwin-x64, locale ko-KR)
    • Flutter version 3.16.5 on channel stable at /Users/xxxxxx/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (7 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
    • Android SDK at /Users/taehyun/Library/Android/sdk
    • Platform android-34, build-tools 33.0.2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

How to reproduce?

Always fail to get video and other media

Logs

not error message

Example code (optional)

final PermissionState ps = await PhotoManager.requestPermissionExtend();
print("ps : ${ps.hasAccess}");
if (!mounted) {
  return;
}
if (ps.isAuth) {
  print("ps is auth");
  // return PhotoManager.openSetting(); <<<<<<<<<<< dev flavor isAuth == true / but stage flavor isAuth == false 
}
// Further requests can be only proceed with authorized or limited.
if (!ps.hasAccess) {
  print("ps is not access");
  setState(() {
    _isLoading = false;
  });
  return;
}
// Obtain assets using the path entity.
final List<AssetPathEntity> paths = await PhotoManager.getAssetPathList(
  type: widget.onlyImage ? RequestType.image : RequestType.common
);

Contact

xogus7946@gmail.com

@AlexV525
Copy link
Member

AlexV525 commented Feb 7, 2024

?

@k-theo
Copy link
Author

k-theo commented Feb 7, 2024

Please understand that we use translation first.
I didn't know where to make an inquiry, so I asked the relevant GitHub. If there is any other place, please let me know.

The following authorities are the authorities to be obtained at the time of authority check.

Permission.camera,
Permission.microphone,
Permission.notification,
Permission.mediaLibrary,
Permission.storage,
Permission.photos,
Permission.manageExternalStorage,
Permission.accessMediaLocation,
Permission.accessMediaLocation,
Permission.accessNotificationPolicy,

The image is received normally, but the video on the same album is not received.

@k-theo k-theo changed the title [Bug report] [Bug report] Failed to get the video Feb 7, 2024
@k-theo k-theo changed the title [Bug report] Failed to get the video [How to Use] Failed to get the video Feb 7, 2024
@AlexV525
Copy link
Member

AlexV525 commented Feb 7, 2024

Please use the example of the plugin to verify if the issue persists, and provide screenshots or screen recording if it does.

@k-theo
Copy link
Author

k-theo commented Feb 18, 2024

To give you a later update, I was a fool.
Only Permisson.photo, not Permission.video.

In the past, I think it was probably brought to mediaLibrary Permission.

@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 18, 2024
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