Skip to content

Fix opened_position intent and add "?startupindex=XX" to URI's

popy popy requested to merge popy/vlc-android:fix_opened_position into master

Examples of usage to start index 5:

intent:

 int vlcRequestCode = 42;
 Uri uri = Uri.parse("https://www.domain.com/playlist.m3u8");
 Intent vlcIntent = new Intent(Intent.ACTION_VIEW);
 vlcIntent.setPackage("org.videolan.vlc");
 vlcIntent.setDataAndTypeAndNormalize(uri, "audio/*");
 vlcIntent.putExtra("title", "Test");
 vlcIntent.putExtra("from_start", false);
 vlcIntent.putExtra("opened_position", 5);
 startActivityForResult(vlcIntent, vlcRequestCode);

URL: vlc://https://www.domain.com/playlist.m3u8?startupindex=5

Merge request reports

Loading