Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a sample for MediaPlayer in Compose Multiplatform #716

Open
artsmvch opened this issue Jul 9, 2023 · 1 comment
Open

Add a sample for MediaPlayer in Compose Multiplatform #716

artsmvch opened this issue Jul 9, 2023 · 1 comment
Labels
enhancement New feature or request example

Comments

@artsmvch
Copy link

artsmvch commented Jul 9, 2023

Is your feature request related to a problem? Please describe.
I can't make a working sample of MediaPlayer in Compose Multiplatform

Describe the solution you'd like
I would like to have a working sample of MediaPlayer so I can understand how I can use it in Compose Multiplatform app

Additional context
The starting point could be a Composable method with an actual implementation:

@Composable
private fun VideoPlayer(
    videoUrl: String
) {
    // Video player example
    val mediaPlayer = DefaultMediaPlayer(surfaceProvider, baseMediaManagerBuilder, Dispatchers.Main)
    ...
}

@artsmvch artsmvch changed the title Add a sample for MediaPlayer Add a sample for MediaPlayer in Compose Multiplatform Jul 9, 2023
@thoutbeckers thoutbeckers added enhancement New feature or request example labels Jul 11, 2023
@Daeda88
Copy link
Contributor

Daeda88 commented Jul 11, 2023

@alexeiartsimovich I can make an example for Android Compose. However the current implementation of Kaluga does not support Compose multiplatform, just Compose Android. We'd have to enhance the libraries to make that work. Definitely on the to do list though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request example
Projects
None yet
Development

No branches or pull requests

3 participants