Skip to content

Commit 923c0f0

Browse files
committed
Add Media3 to the Android interpreter
1 parent e43ac97 commit 923c0f0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Demo/swiftui/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ kotlin {
2828
implementation(compose.material3)
2929
implementation(libs.kotlinx.serialization.json)
3030
}
31+
androidMain.dependencies {
32+
// VideoPlayer: the legacy MediaPlayer stack is unreliable for
33+
// remote streams, so the Android player is Media3.
34+
implementation("androidx.media3:media3-exoplayer:1.4.1")
35+
implementation("androidx.media3:media3-ui:1.4.1")
36+
}
3137
// `external fun` is JVM-only; both targets are JVM, so the bridge's
3238
// Swift-implemented classes live in a source set they share.
3339
val jvmShared by creating {

0 commit comments

Comments
 (0)