a914-gowtham / android-video-trimmer

Helps to trim local videos with compress option on Android applications using Exoplayer 2 and FFmpeg.
Other
362 stars 115 forks source link

Not support permission "android.permission.READ_MEDIA_VISUAL_USER_SELECTED" on android 14 #102

Closed vnhanh closed 4 months ago

vnhanh commented 4 months ago

Hi team, First, I would like to thank your team for quick support in this issue: https://github.com/a914-gowtham/android-video-trimmer/issues/101.

For now, I raise new issue related to new permission READ_MEDIA_VISUAL_USER_SELECTED on Android 14. This new permission was wrote in this link: https://developer.android.com/about/versions/14/changes/partial-photo-video-access.

Version: 1.7.15. Step by step:

  1. On Android 14, user tap Add Photo button, my app shows the Permission Request dialog.
  2. User allow "Choose Photos and Videos" permission, user select videos of their preference, so my app using the library to trim video.

Expected result: my app show the Trim video screen. Actual result: my app can't not show the Trim video screen and show failed message.

After that, I checked code and saw that the library's code not support the permission _android.permission.READ_MEDIA_VISUAL_USERSELECTED: image Image 1. The library's code with version 1.7.15 not support checking permission READ_MEDIA_VISUAL_USER_SELECTED on android 14.

image Image 2. Request permission dialog on android 14

I tried to update the latest version 1.7.18, but the issue still exist. image Image 3. The library's code on version 1.7.18

Please help me, thanks very much!

a914-gowtham commented 4 months ago

Hi @vnhanh fixed in 1.7.19.

vnhanh commented 4 months ago

Hi @a914-gowtham thanks very much! Have a nice day!