multiplatform: stop video playback when swiping away (#6588)

* android/build.gralde.kts: add JAVA_HOME to PATH

* fullScreenView: dispose player.stop when view changes

* fullScreenView: stop the video playback midway swipe

Previously, video playback stopped **only** when screen was fully swiped away to next item.

* ImageFullScreenView: simplify

* revert back VideoView
This commit is contained in:
sh
2026-01-21 09:14:04 +00:00
committed by GitHub
parent 2fc72861e2
commit 8d1ca9917b
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -192,7 +192,10 @@ tasks {
}
exec {
workingDir("../../scripts/android")
environment = mapOf("JAVA_HOME" to "$javaHome")
environment = mapOf(
"JAVA_HOME" to "$javaHome",
"PATH" to "${javaHome}/bin${File.pathSeparator}${System.getenv("PATH")}"
)
commandLine = listOf(
"./compress-and-sign-apk.sh",
"${rootProject.extra["compression.level"]}",