Page 1 of 1

vlcj: Having to use DirectMediaPlayer because of Macintosh

Posted: 01 Apr 2022 20:03
by unixnerd
For years I've been using the embedded media playing with no problems and life has been easy! But now we need to work under MacOS. It's been 15+ years since I've touched a Mac. Apparently the embedded player needs a heavyweight component as a parent and MacOS Java no longer has one, so I'm trying the DirectMediaPlayer.

Is there any way around this?

With DirectMediaPlayer I can get things to work if I hard code the video size. But any attempts to work out the video's real width and height or resize the playback window interactively have resulted in much frustration.

Any help appreciated.

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Posted: 04 Apr 2022 04:53
by mfkl
Any code or attempts would be appreciated, as not many people familiar with vlcj APIs hang out on this forum. Also which versions you use, as vlcj currently contains no mention of DirectMediaPlayer.

Have you checked out the vlcj samples? https://github.com/caprica/vlcj-example ... /vlcj/test

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Posted: 04 Apr 2022 15:08
by unixnerd
I'm using vlcj 3.8.0. Current version means users having to install VLC 4.x and if I can support their older copies I'd like to. I've seen a good bit of the demo code but can't claim to have seen it all. As for demo code my program is rather large alas, partly because it allows up to four videos to be played at once.

Is there a better forum to ask? Thanks for the help.

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Posted: 06 Apr 2022 07:25
by mfkl
I'm using vlcj 3.8.0. Current version means users having to install VLC 4.x
That is not my understanding, the readme says vlcj 5 works with vlc 4, vlcj 4 with vlc 3.
As for demo code my program is rather large alas
Then you should create a minimal reproducible sample for us to have a look. This is part of a good bug report/support request process.
Is there a better forum to ask?
Try your luck on the libvlc discord. The vlcj maintainer hangs out there sometimes.