[Android] RemoteAccess: stop video playback in background
Duncan McNamara
git at videolan.org
Wed Sep 18 07:17:25 UTC 2024
vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Sep 16 18:24:13 2024 +0200| [c6f1b55fb4eba7e093ab9d53870bee50c707cc77] | committer: Duncan McNamara
RemoteAccess: stop video playback in background
> https://code.videolan.org/videolan/vlc-android/commit/c6f1b55fb4eba7e093ab9d53870bee50c707cc77
---
.../src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt | 1 +
1 file changed, 1 insertion(+)
diff --git a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
index 755d8b2a90..e267ca00fc 100644
--- a/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
+++ b/application/webserver/src/main/java/org/videolan/vlc/webserver/RemoteAccessRouting.kt
@@ -969,6 +969,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) {
if (asAudio) medias[0].addFlags(MediaWrapper.MEDIA_FORCE_AUDIO)
if (medias[0].type == MediaWrapper.TYPE_VIDEO && !appContext.awaitAppIsForegroung()) {
call.respond(HttpStatusCode.Forbidden, appContext.getString(R.string.ra_not_in_foreground))
+ return at get
}
when {
append -> MediaUtils.appendMedia(appContext, medias)
More information about the Android
mailing list