vlcj: Having to use DirectMediaPlayer because of Macintosh

This forum is about all development around libVLC.
unixnerd
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2022 19:51

vlcj: Having to use DirectMediaPlayer because of Macintosh

Postby unixnerd » 01 Apr 2022 20:03

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Postby mfkl » 04 Apr 2022 04:53

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
https://mfkl.github.io

unixnerd
New Cone
New Cone
Posts: 2
Joined: 01 Apr 2022 19:51

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Postby unixnerd » 04 Apr 2022 15:08

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.

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: vlcj: Having to use DirectMediaPlayer because of Macintosh

Postby mfkl » 06 Apr 2022 07:25

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.
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 6 guests