Haptic-Apps / Slide

Slide is an open-source, ad-free Reddit browser for Android.
https://reddit.com/r/slideforreddit
GNU General Public License v3.0
1.78k stars 344 forks source link

Saved media with slide in gallery not showing. #2916

Open fozters opened 5 years ago

fozters commented 5 years ago

Slide version:5.9-alpha2 Android version:9 Oneplus 6, f-droid slide, for some reason when I save image, gif, mp4 with slide for reddit it doesn't show up in phones gallery until I reboot phone.

Just like the media library would not get refreshed somehow. Not having similar issues with any other app. Is this android 9 problem?

Great app otherwise and which I chose to replace vanilla reddit app. This one thing just buggers me. Probably will go pro later on.

timawesomeness commented 5 years ago

Sounds like a OnePlus-specific issue to me. Media that I save from slide shows up immediately in my gallery on both android 8.1 and 9.

fozters commented 5 years ago

Thanks for info. I tried to re-install app from fdroid, install the playstore version and they are acting the same.

Weird is as when you are at /gif saving some gif or other media file if you select "save gif" and "save mp4" both from drop down menu, the other one sometimes is visible in gallery without reboot.

If you have used both to download & reboot you have 2 same files. If you use the dowload icon you have to reboot to see media file in gallery.

I'm using /storage/emulated/0/pictures/reddit as download folder. Runnin oxygen os 9.0.2 version.

Is there any other way I can help to diagnose the problem? Is there anything else I can try to fix the problem, like some settings or something?

fozters commented 5 years ago

Just to add it might be op6 gallery problem indeed. Weird that I've only seen it non functioning properly with slide gifs. Here is something similar https://forums.oneplus.com/threads/gallery-not-working-properly.861282/ So I installed other gallery app as suggested and I can see the gifs immidiatly. My bad I just didn't think gallery app would be replaceable app..

vdurante commented 4 years ago

I also face this issue. Since I have been trying to circumvent it for a couple years and it has the Needs Reproduction label, I will attempt to add a few notes here and hopefully get it fixed.

Disclaimer: I am no expert in video encoding, etc.

Let's suppose I want to download this video outside Reddit. By digging on the code or using external applications, I am able to find 2 sources: DASH and HLS. Apparently they are both streaming URLs, but DASH doesn't have audio. The audio track apparently loads separately. From now on, whenever I talk about DASH, you should imply it has no audio.

Downloading

Now this is where things get interesting...

Sharing, Embeding URL and Visualizing

I have attempted testing this on a few platforms. If you want a great combo for testing failing scenarios, you should try WhatsApp for sharing and Google Photos for Visualizing.

I am unsure how both DASH and HSL video works. Supposing it exports as a standard mp4 file, I can only assume either Reddit has purposefully implemented some kind bug or issue on the video's format in a way it works on browsers but not properly outside, or absolutely all those apps are improperly downloading the video.

Proposed features

  1. The simple one: enable video sharing in Slide's app. Right now, whenever I want to share a cat video with my friends, I have to download it, open it through the Slide's popup, click the share button and choose another app. I wish Slide had a Share button that would automatically save + share it, like RedReader does.
  2. Understand what is going on with v.reddit's videos and develop some bypass/workaround. Idk how Slide does this, but I would attempt to use some kind of ffmpeg wrapper for andrdoid, or manually merging DASH + Audio, or finding another way of downloading HSL, or attempting some conversion between formats, or simply reverse engineering the v.reddit video to understand if it has something wrong with it.

TIA.