Watch DLNA/UPNP

Can I watch videos on my Plex server when I use Haiku? The most predictable way is to use VLC, but, for some reason, there is no UPNP submenu in VLC, where it should be.

1 Like

UPNP is disabled in the Haikuports recipe due to it deadlocking:

Seems to have been disabled since 2020

Its been many years since I poked at the VLC code (I ‘maintained’ the last few, terrible, releases for BeOS/Zeta over a decade ago) so I can’t really comment on the architecture of it anymore; but I’d guess the issue is with libupnp and not how VLC uses it.

I’ve some memory that multicast doesn’t work perfectly in the network stack? That’s based on exceptionally old info though.

Plex should work in a webbrowser. Afaik i used it with Falkon.

Unfortunately probably still true, I don’t think there has been a lot of work in that area.

I’ve found a mean to play audio files, from my miniDLNA rPi Server to my Haiku Laptop.

It’s a dlna browser written in CLI. Not really sure it can work with Plex but with miniDLNA it’s ok.
You have to identify the ip of your server && what you’re searching for, then

sh simple-dlna-browser -s 192.168.10.188 -v -f upnp:album “nevermind”

And finally XARGS the command to a media player :

sh simple-dlna-browser -s 192.168.10.188 ‘On A Plain’ | xargs mplayer

The simple-dlna-browser is able to scan DLNA’s server from your network, in case for example, you don’t have it’s IP. But for that it need the ‘socat’ tool, wich apparently isn’t have a version for Haiku.

http://www.dest-unreach.org/socat/

Also Haiku’s repository have some UPNP tools. As i learned these previous days, DLNA is a more restrictive protocol than UPNP, in other words, DLNA’ is a derive from UPNP, so with UPNP tools it may be possible to scan the network.

I’ll work on a GUI for this simple-dlna-browser, and try to do something with that.

Hope my search will be usefull.

3 Likes

That’s very cool. I run a minidlna server too on my home network. Mainly to stream to a PS4 and to a TV (and several computers and tablets via VLC). But being able to watch from Haiku is of course great.