Skipping to specific playlist track with intent putExtra "opened_position" not working
Description
When VLC Android is started with an m3u8 playlist (like the m3u8 provided) with the intent provided, it does not start with the given playlist track.
m3u8 to test:
#EXTM3U
#EXTINF:0,Ö1
https://orf-live.ors-shoutcast.at/oe1-q1a
#EXTINF:0,Hitradio Ö3
https://orf-live.ors-shoutcast.at/oe3-q1a
#EXTINF:0,Welle 1
http://live.welle1.at:7128/stream
#EXTINF:0,Bayern 2
https://dispatcher.rndfnk.com/br/br2/sued/mp3/low
#EXTINF:0,Bayern 3
https://dispatcher.rndfnk.com/br/br3/live/mp3/low
intent from other app:
int vlcRequestCode = 42;
Uri uri = Uri.parse("https://URL-TO.m3u8");
Intent vlcIntent = new Intent(Intent.ACTION_VIEW);
vlcIntent.setPackage("org.videolan.vlc");
vlcIntent.setDataAndTypeAndNormalize(uri, "video/*");
vlcIntent.putExtra("title", "Test");
vlcIntent.putExtra("from_start", True);
vlcIntent.putExtra("opened_position", 2);
startActivityForResult(vlcIntent, vlcRequestCode);
This should start the playlist @ track X (2 in our sample). Please correct me if i am wrong and extra "opened_position" is not intended for initial playlist skipping.
Expected behavior
VLC starts playing at the give playlist track index.
Actual behavior
it starts playing at the first track in the playlist.
Steps to reproduce
- start VLC with the provided intent & m3u8 (which has some radio streams in it)
- VLC starts playing at first track in the playlist
Screenshot / video
Context
App version
3.5.2 Android x86
Android version
Android 11
Device model
Android Studio Emulator (Nexus 10) but also several different tablets
App mode
Smartphone