Add custom VideoSurface for the VideoPlayer example
With this approach the Video can be properly displayed within your Compose UI and removes the need for a SwingPanel.
I think the following pull request is relevant:
- https://github.com/JetBrains/compose-multiplatform/pull/2306
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.
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!
For those seeking better player performance on vlcj-5, please refer to https://github.com/caprica/vlcj/issues/1235#issuecomment-2199116225 for the change