Vizio Co-Star and Cling

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Vizio Co-Star and Cling

CUser
Hi everyone,

Hopefully this is something simple.  I'm having issues getting playback working on a Google TV Vizio Co-Star.

I'm getting some weird results on this particular device.  Cling to WMP, XBOX, etc is working fine.

I've tried the following monitoring wireshark and within cling 2.0 alpha:

Subscribe to AVTransport via ConnectionManager on GTV device.
Stop() - success
SetAVTransportURI() - success
GetTransportInfo() success
GetMediaInfo() success
Play() - success - the GTV device does request and "GET" the full url set prior (the full transfer goes through), but nothing displays.  I've tried playing with the headers in the URL reply, but nothing.
GetPositionInfo() success
IE:
(Image)
Scid.DLNA.ORG: 853465247\r\n
TransferMode.DLNA.ORG: Interactive\r\n
Audio/Video
TransferMode.DLNA.ORG: Streaming\r\n

Setting the MetaData to one I know works from WMP 12 to GTV isn't working with cling - perhaps since Cling isn't applying the extra namespace as part of <CurrentURIMetaData namespace> but I cannot be sure yet.  Metadata null, set, and NO METADATA all result in a GET request on play.  WMP 12 to the same GTV Playpoint device works.

Any ideas?

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

CUser
This post was updated on .
After using tcpdump on an actual Android device, I think I've narrowed it down to the DIDLLite markup.

I'm not sure exactly how to create this properly, as when I simply create the string, all &'s and "'s get escaped to & amp; and & quot; which isn't what the output from BubbleUPnP looks like.

How do I properly create the DIDL from scratch?

Here is the raw DIDL I've tried inserting in the place of "NO METADATA" that is getting escaped.

        	// DIRECT FROM BUBBLEUPNP BELOW...
        	final String md = "&lt;DIDL-Lite xmlns=\"urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/\" xmlns:upnp=\"urn:schemas-upnp-org:metadata-1-0/upnp/\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:dlna=\"urn:schemas-dlna-org:metadata-1-0/\" xmlns:sec=\"http://www.sec.co.kr/\"&gt;&lt;item id=\"" + 
        	siUrl + "\" parentID=\"0\" restricted=\"1\"&gt;&lt;upnp:class&gt;object.item.imageItem&lt;/upnp:class&gt;&lt;dc:title&gt;screenshot-1321723074314&lt;/dc:title&gt;&lt;dc:creator&gt;Unknown Artist&lt;/dc:creator&gt;&lt;upnp:artist&gt;Unknown Artist&lt;/upnp:artist&gt;&lt;upnp:albumArtURI&gt;" + siUrl + "&lt;/upnp:albumArtURI&gt;&lt;upnp:album&gt;Unknown Album&lt;/upnp:album&gt;&lt;res " +
        			"protocolInfo=\"http-get:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000\"&gt;" + 
        	siUrl + "&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;";

SetAVTransportURI() and Play() still reply with a success, but there are not any actual GET requests on the file.
Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

Christian Bauer
Administrator
I've fixed and released a quoting problem in alpha 3 yesterday that is most likely the cause of this.

Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

CUser
Just dropped alpha3 in and re-ran the test - original String is in my previous post - this is the output of SetAVTransportURI for MetaData.

Same result on &, looks like you fixed quote though:
&amp;lt;DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" xmlns:sec="http://www.sec.co.kr/"&amp;gt;&amp;lt;item id="URL" parentID="0" restricted="1"&amp;gt;&amp;lt;upnp:class&amp;gt;object.item.imageItem&amp;lt;/upnp:class&amp;gt;&amp;lt;dc:title&amp;gt;screenshot-1321723074314&amp;lt;/dc:title&amp;gt;&amp;lt;dc:creator&amp;gt;Unknown Artist&amp;lt;/dc:creator&amp;gt;&amp;lt;upnp:artist&amp;gt;Unknown Artist&amp;lt;/upnp:artist&amp;gt;&amp;lt;upnp:albumArtURI&amp;gt;URL&amp;lt;/upnp:albumArtURI&amp;gt;&amp;lt;upnp:album&amp;gt;Unknown Album&amp;lt;/upnp:album&amp;gt;&amp;lt;res protocolInfo="http-get:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000"&amp;gt;URL&amp;lt;/res&amp;gt;&amp;lt;/item&amp;gt;&amp;lt;/DIDL-Lite&amp;gt;

Is there another way to go about this as BubbleUPnP isn't having this issue?
Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

CUser
Took a look at your quote change and realized I could just do the < and > vs the & lt; gt; and boom, working.  :)

Thanks for all your help and the bug fixes from everyone.

Is there any good list of the following flags for the mimes?  Specifically the flags and the ORG_PN= portion.  IE: for avi, mkv, jpeg, mp3, etc?  I can't seem to find a proper listing.

DLNA.ORG_PN=PNG_LRG;DLNA.ORG_OP=01;DLNA.ORG_FLAGS=01700000000000000000000000000000
Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

lightglitch
Reply | Threaded
Open this post in threaded view
|

Re: Vizio Co-Star and Cling

CUser
Perfect.  Thank you.

For the Co-Star at least, I've found you can simply use http-get:*:mimetype without all the additional flags.