Re: SetAvTransportUri
- From: Jens Georg <mail jensge org>
- To: andrea zambon <zamby ing gmail com>
- Cc: gupnp-list gnome org
- Subject: Re: SetAvTransportUri
- Date: Thu, 08 Sep 2011 10:11:43 +0200
On Mi, 2011-09-07 at 22:30 +0200, andrea zambon wrote:
Re-including Mailinglist.
> I experimented with gupnp-universal-cp.
> I was able to display a JPEG image, set volume.... etc....
> I'm trying to hear an mp3 file with gupnp-universal-cp on my TV.
> I take as an example the parameters of Rygel.
>
> These are the parameters I have used and modified, the file is located
> in the apache server:
>
> http://192.168.1.105:80/mymusic.mp3
>
> <DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"
> xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/"
> xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/"
> xmlns:arib="urn:schemas-arib-or-jp:elements-1-0/"
> xmlns:av="urn:schemas-sony-com:av">
> <item id="3d6512c4273fe96fbdf471e7d1d3f8be"
> parentID="virtual-container:d62b16c1951debeb97d8df3e8aac458e"
> restricted="0"><dc:title>mymusic</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:date>2009-01-01</dc:date><res size="4336511" protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000" duration="0:03:36.000" bitrate="16841641">http://192.168.1.105:80/mymusic.mp3</res></item></DIDL-Lite>
>
> gupnp-universal cp-returns error 714.
I suppose you call SetAVTransportUri? Error 714 means
714 Illegal MIME-type The specified resource has a MIME-type which is
not supported by the AVTransport service. (cf.
http://upnp.org/specs/av/UPnP-av-AVTransport-v2-Service.pdf page 61,
Table 2-31)
You will want to read-up the documents available at
http://upnp.org/specs/av/av2/ (maybe av1 but av2 includes av1)
>
> If the apache server is not correct, what can I use?
> Or how the transaction should be done?
In theory the apache server should be sufficient, expecially if you
implement what DLNA calles +PU+ where you're inventing the meta-data
passed yourself, but ...
> Where can I find documentation about upnp http connection
> specifications?
... the problem is that UPnP doesn't mandate those headers. You're most
likely pushing to a DLNA device that expects those. And the DLNA
documentation is not freely available.
>
> I'd like to build a simple application with Vala.
You might want to have a look at gupnp-av-cp which does this in
conjunction with a UPnP/DLNA MediaSever.
>
> Thanks again.
>
> 2011/9/7 Jens Georg <mail jensge org>
>
> On Mi, 2011-09-07 at 13:43 +0200, andrea zambon wrote:
> > I'm trying to develop an application that displays images on
> my TV or
> > music.
> > I used SetAvTransportUri to set the input of a jpeg and it
> works
> > well. The image is located on a local server apache.
> > But when I try to set an mp3, I get error 714.
> > The apache server is suitable for sharing multimedia files
> with upnp?
>
>
> More context please. On which application/Renderer are you
> calling
> SetAvTransportUri?
>
> The apache server misses some additional headers that the
> renderer might
> require.
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]