Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.13 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.13 KB

compose-av

A kotlin library for audio and video playback in Jetpack Compose. It is based on libmpv and compose-gl. Disclaimer: This library is in a very early stage of development, so it might not work as expected.

Features

  • Compose video player (🚧)
  • Compose audio player

Platforms

  • Linux
  • Windows
  • Android

Note: macOS/iOS support won't be implemented because of lack of development hardware. If you want to contribute, feel free to do so.

Usage

Gradle:

repositories {
    maven {
        name = "silenium-dev releases"
        url = uri("https://reposilite.silenium.dev/releases")
    }
}

dependencies {
    implementation("dev.silenium.compose.av:compose-av:0.1.0")
}

The library currently requires the libmpv shared library to be installed on the system. On Linux, you can install it using your package manager, e.g. on Ubuntu:

sudo apt install libmpv2

Example

See the Main.kt in the test sources on how to use the library.