|
|
|
@ -967,7 +967,7 @@ fun Route.setupRouting(appContext: Context, scope: CoroutineScope) { |
|
|
|
return@get |
|
|
|
} |
|
|
|
if (asAudio) medias[0].addFlags(MediaWrapper.MEDIA_FORCE_AUDIO) |
|
|
|
if (medias[0].type == MediaWrapper.TYPE_VIDEO && !appContext.awaitAppIsForegroung()) { |
|
|
|
if (medias[0].type == MediaWrapper.TYPE_VIDEO && !appContext.awaitAppIsForegroung() && settings.getString("video_action_switch", "0") != "1") { |
|
|
|
call.respond(HttpStatusCode.Forbidden, appContext.getString(R.string.ra_not_in_foreground)) |
|
|
|
return@get |
|
|
|
} |
|
|
|
|