Skip to content

Add a sample for MediaPlayer in Compose Multiplatform #716

Open

Description

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)
    ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions