Open Riz1ahmed opened 3 weeks ago
We cannot respond until the DESCRIPTION item is filled
This behavior is currently as intended.
What I will give in the description?
Now I have checked your inner code. In native you called same for both video and image
GalPlugin.java (line63)
switch (call.method) { case "putVideo": case "putImage": { new Thread(() -> { try {
And in the createContentValues method The condition Is (I think not right).
GalPlugin.java (line167)
private ContentValues createContentValues(boolean isImage, String name, String extension,
String album) {
ContentValues values = new ContentValues();
String dirPath = isImage || album != null ? Environment.DIRECTORY_PICTURES
: Environment.DIRECTORY_MOVIES;
......
Here set Environment.DIRECTORY_PICTURES if album null. But I have passed album value
What I will give in the description?
Simply fill in the items as per the template. You have erased it and it is no longer visible.
Now I have commented. Please check
When specifying a custom album, it is intended that it be created under Picture. I don't remember, but I think there was a reason it couldn't be created under Videoš¤
After removing the album != null
from the createContentValues method, The video has been saved in the 'Movies/Intro Maker' directory. So I think it is possible
And it is not good practice to use your code by changing on my side as there could be more conditions I don't know.
So please handle it
One thing I just remembered. I believe that this will result in a behavior that is not as intended for many people.
For example, when you save a file with the folder name MyFolder, if you save it in Pictures for images and Movies for videos, two folders named MyFolder will be created. @Riz1ahmed
Any update? Same issue with android 13, Samsung Galaxy A71. await Gal.putVideo(filePath, album: 'MyAlbum');
. MyAlbum
saved in Pictures instead of Movies and the video does not show in the Gallery.
As you can see from the thread above, this behavior is intentional and will not be changed. And this issue will be closed soon as there has been no reply from the author.
Did you check the documentation and it did not help?
When I am saving video with an album name (e.g.
await Gal.putVideo(tmpVideoPath.path, album: 'Intro Maker');
) the video saving into 'Picture/Intro Maker' directory.My phone is a Galaxy s8, android v10 (Custom ROM).