Using "Share" -> "Play with VLC" from Newpipe shows only the thumbnail for a few seconds
Hello
Important info
I said Newpipe (https://newpipe.net/) but i don't know if there are other apps with this issue.
This issue was reported in the Newpipe bug tracker https://github.com/TeamNewPipe/NewPipe/issues/10016, but it was marked as an issue in VLC, not Newpipe.
Expected behavior
When using the "Sharing" action, common in every app, and using the option "Play with VLC", for example from Firefox when i had open a Youtube video, if share to VLC from there, VLC tries to play it.
Actual behavior
However, if i do the same thing from Newpipe, VLC opens the thumbnail for a few seconds and closes.
Steps to reproduce
- When in Newpipe, open any video (or in a list of videos, do a long press in a specific video).
- Tap "Share" (if its in a video, maybe you need to click in the title to expand the actions available before hand).
- When the share dialog pop ups, tap "Play with VLC".
Screenshot / video
There are some screenshots in the Newpipe bug report https://github.com/TeamNewPipe/NewPipe/issues/10016, but i think the ones useful here are:
Share Dialog from Newpipe (at the moment you need to tap "Play with VLC"). Note that Newpipe is sharing too the thumbnail.
VLC playing the thumbnail when a Youtube video is shared from Newpipe.
More info
There is some debugging info in the Newpipe bug report https://github.com/TeamNewPipe/NewPipe/issues/10016, however, i need to highlight two things:
Looking for what is sharing Newpipe in Logcat, i found this:
04-11 23:07:27.298 I/ActivityTaskManager( 1656): START u0 {act=android.intent.action.SEND typ=text/plain flg=0xb080001 cmp=org.videolan.vlc/.StartActivity clip={image/jpeg U:content://org.schabi.newpipe.provider/root/data/data/org.schabi.newpipe/cache/android_share_sheet_image_preview.jpg} (has extras)} from uid 10347
From everything i shared, my first guess that this is a Newpipe issue, but testing the sharing from Newpipe to other apps, the behaviour is correct:
- Sharing to a browser (Firefox): It opens the video URL.
- Sharing to a file explorer (CX File Explorer): It tries to save a text file with the title of the video as filename, and as content it has the URL.
- Sharing to a Twitter Direct Message (Twitter): Creates a draft message with title first and URL second.
- Sharing to a Tweet (Twitter): Generates a draft tweet with only the URL.
- Sharing to a Tweet (Twidere): Generates a draft tweet with the template "Title - URL".
- Sharing to Whatsapp: Creates a message with only the URL.
- Sharing to Notes: Creates a note with only the URL.
- Sharing to a mail app (K-9 Mail): It opens a new mail with the title as Subject, and the URL as main content.
- Sharing to mpv-android: It tries to open the URL (but fails).
- Sharing to VLC: opens the thumbnail
🤷 .
Here is a debug log from VLC when i share from Newpipe to VLC: NewpipeToVLC_vlc_logcat_20230416_192538.log
Context
App version
VLC Android 3.5.4
Android version
Android 10 QKQ1.190828.002 (MIUI 12.0.10)
Device model
Xiaomi Mi 9 Lite
App mode
Smartphone
Thanks!