Skip to content

Skipping to specific playlist track with intent

Description

Provide an intent to skip to certain media. Ex.: in an m3u8 playlist (like the m3u8 provided).

See previous issue/discussion here: #2730 (closed)

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

example intent to skip to track 2 (which is "Hitradio Ö3" in this example):

val vlcIntent = Intent(Intent.ACTION_VIEW)
vlcIntent.setPackage("org.videolan.vlc")
vlcIntent.action = "vlc.playbackshortcut.skip_to:2"

Expected behavior

VLC starts playing the given index, if the index is valid.

Actual behavior

Steps to reproduce

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

Edited by popy popy