Embedded VLC

I haven't pushed the code yet but I was able to use the "vlcj" library to embed an inline audio player into Alhena. It only works if you have VLC installed but I've tested it on Windows, Mac and Pi. I coded the controls in Swing so they match the current theme, etc. It looks great. Nice and simple. I've tried ogg, opus, mp3 and m4a and all play just fine.

I also did a quick test and yes, it's possible to embed an inline video player. I'm wondering though if this is something anyone would use. I can't remember stumbling (or fumbling) across any pages with downloadable video. Any thoughts? Keep in mind that audio/video is only played if the user clicks a link. I don't think it's a betrayal to the ethos but I've been wrong before.

๐ŸฆŽ bluesman

Apr 14 ยท 6 months ago ยท ๐Ÿ‘ gritty, clseibold

4 Comments โ†“

๐Ÿ‘ค jdcard ยท 2025-04-14 at 05:03:

I have tinkered with video a bit (mostly for the gmi2html conversion script that I use) so this test page includes an mp4 file.

โ€” jdcard/com/test.gmi

๐Ÿ‘ค jdcard ยท 2025-04-14 at 05:04:

โ€” A link that really works.

๐ŸฆŽ bluesman [OP] ยท 2025-04-14 at 14:18:

@jdcard Thanks for the link. The Beatles instrumental (ogg version) revealed an issue so it's nice to test outside my sandbox. I will be revisiting the mp4 soon - expect a bump in traffic!

๐Ÿš€ clseibold ยท 2025-04-16 at 12:20:

Yes please for the video! :D


Source