[Android] Add an intent listener to skip to an index in the play queue
Nicolas Pomepuy
git at videolan.org
Fri Nov 18 12:47:14 UTC 2022
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Nov 16 11:18:11 2022 +0100| [3e3a59133cca161768fec15ddb04d69b6b32a0a6] | committer: Nicolas Pomepuy
Add an intent listener to skip to an index in the play queue
Fixes #2733
> https://code.videolan.org/videolan/vlc-android/commit/3e3a59133cca161768fec15ddb04d69b6b32a0a6
---
application/vlc-android/src/org/videolan/vlc/StartActivity.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
index a699f0bccf..d801caa698 100644
--- a/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/StartActivity.kt
@@ -248,6 +248,7 @@ class StartActivity : FragmentActivity() {
intent.data?.let { MediaUtils.openMediaNoUi(it) }
}
intent.data?.authority == getString(R.string.tv_provider_authority) -> MediaUtils.openMediaNoUiFromTvContent(this at StartActivity, intent.data)
+ intent.data?.authority == "skip_to" -> PlaybackService.instance?.playIndex(intent.getIntExtra("index", 0))
else -> withContext(Dispatchers.IO) { FileUtils.getUri(intent.data)}?.let { MediaUtils.openMediaNoUi(it) }
}
finish()
More information about the Android
mailing list