Skip to content

sbenmeddour/mdk-compose

Repository files navigation

mdk-compose

MDK player wrapper for Compose-Multiplatform Under development, not ready at all

Compatibility

  • Android
    • SufaceView
    • Vulkan
    • GL
  • iOS
    • Metal
    • UIView
  • Desktop
    • macOS
    • Windows

TO DO :

  • Windows
  • macOS
  • fix issues
  • iOS UIView
  • Expose more APIs
  • Publish artifacts
  • Subtitles styling configuration

Usage:

val player = rememberPlayer()
PlayerView(
  modifier = Modifier.fillMaxSize(),
  player = player,
)
LaunchedEffect(Unit) {
  player.setMedia(url)
  player.prepare().onSuccess { player.play() }
}
DisposableEffect(Unit) {
  onDispose { player.release() }
}