Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • VLC-Android VLC-Android
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 512
    • Issues 512
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VideoLANVideoLAN
  • VLC-AndroidVLC-Android
  • Merge requests
  • !1720

Fix "opened_position" intent extra, to use for index based playlist opening

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged popy popy requested to merge popy/vlc-android:fix_opened_position into master Apr 19, 2023
  • Overview 5
  • Commits 7
  • Pipelines 6
  • Changes 3

This is the "opened_position" part of not merged !1628 (closed). It enables the user to use the "opened_position" extra from an intent, to start an playlist at an given index.

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);
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix_opened_position

VideoLAN code repository instance