compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Add custom VideoSurface for the VideoPlayer example

Open DrewCarlson opened this issue 2 years ago • 5 comments

With this approach the Video can be properly displayed within your Compose UI and removes the need for a SwingPanel.

image

DrewCarlson avatar Jul 10 '23 18:07 DrewCarlson

I think the following pull request is relevant:

  • https://github.com/JetBrains/compose-multiplatform/pull/2306

mahozad avatar Jul 13 '23 04:07 mahozad

Thanks, did not see that one. Would be great to have either merged, the solution is not very discoverable as a PR.

This feels like a bad case to demonstrate Swing interop with. There are better examples and given the limitations there is little value in a video player that cannot have overlapping controls.

DrewCarlson avatar Jul 13 '23 06:07 DrewCarlson

Hey, @DrewCarlson. You did perfect job, works like a charm! I spend so many hours trying to make Swing variant working but you just give me a chance to remove this problem from my desk. Thank you!

avently avatar Sep 26 '23 15:09 avently

For those seeking better player performance on vlcj-5, please refer to https://github.com/caprica/vlcj/issues/1235#issuecomment-2199116225 for the change

diousk avatar Jul 01 '24 03:07 diousk