Re: Streaming to DLNA devices



Hi Jens,

> Indeed, it seems to work with all DLNA devices I have. I am still to
> find a way to differentiate between ones that can accept only mp3 and
> ones that can do flac or some other uncompressed format... so I send
> mp3 to all right now. Do you have a hint for me?

Yes. Call GetProtocolInfo on the Renderer's ConnectionManager service.
The sink variable of the response gives you a comma-separated list with
entries like http-get:*:audio/mpeg:DLNA.ORG_PN=MP3 or maybe a * at the
end as well, I think dLeyna even preprocesses that for you. The only
uncompressed format DLNA supports is raw PCM (profile LPCM), but there
should be devices doing flac as well.

I assume that due to 'http-get" in response this means that this formats are supported for streaming? I have Onkio that is advertised as supporting Flac, but when I bought it it turned out it is explicitly not supported for streaming, only for files :-(

Do I need to specify http-get somehow to GetProtocolInfo or will this return both streaming supported formats and file supported formats?

Yes, Linn does streaming Flac (which is an compressed format btw)
 

Btw, to be really foolproof, all your uris should have a file extension
matching the file-type. Some (mainly cheap) devices rely on them.

I suppose that means http://1.2.3.4:yyy:xxx.mp3 (I used only http://1.2.3.4:yyy in my tests) but what should I have as xxx ?

 
> 1) a command-line control point, which can push URL to renderer,
> stop/play/pause, change volume etc....

Not really.

Bummer. That would help people trying to script things .. like me :-) I think rendererconsole.py is about to have a surgery :-)
 
> 2) A web browser control point. I am aware of dLeyna Cloud, but that
> is barely a prototype

There was something as a demo of gupnp-php, but I've no idea how usable
that is or what it's called.

Could not find anything other then few examples that are part of the  gupnp-php code

With all this DLNA devices all over the place, I am fascinated that so few people want to use them :-) If I can find an app like Ampache but from 21st century (eg HTML5) I might do something myself...

Your help is very much appreciated!



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]