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

Some Questions #1236

Closed
kagg886 opened this issue Jul 6, 2024 · 3 comments
Closed

Some Questions #1236

kagg886 opened this issue Jul 6, 2024 · 3 comments
Labels

Comments

@kagg886
Copy link

kagg886 commented Jul 6, 2024

Ha, I see Jetbrains themselves use vlcj in at least their experimental repo:

https://github.com/JetBrains/compose-jb/blob/master/experimental/components/VideoPlayer/library/src/desktopMain/kotlin/org/jetbrains/compose/videoplayer/DesktopVideoPlayer.kt
Originally posted by @caprica in #1098 (comment)_

I use this video-view, but i can't hover a text above a video, that is my code:

Box(modifier = Modifier.fillMaxSize()) {
                VideoPlayer(url = file.absolutePath, state = state,modifier = Modifier.fillMaxSize(0.1f))
                Text("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa")
}

result is here:
image

@caprica
Copy link
Owner

caprica commented Jul 6, 2024

I don't know anything about that JetBrains code.

What you can do with overlaying text or controls all depends how they've done the vlcj integration.

I'm going to close this as off-topic for now since we don't support other company's projects here. If you find a specific problem related to vlcj, by all means comment back here and this can be re-opened.

@caprica caprica closed this as completed Jul 6, 2024
@caprica caprica added the Support label Jul 6, 2024
@mahozad
Copy link

mahozad commented Jul 6, 2024

@kagg886

As an example see this project and this pull requeset. Using the solution in these you can use a simple box to overlay whatever you want on the video.

@Him188
Copy link

Him188 commented Jul 16, 2024

You might also want to check https://github.com/open-ani/ani/tree/master/app/shared/video-player/desktop/ui/VideoPlayer.desktop.kt
for a production-level working example (though not very good).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants