UPnP plugin

13 replies [Last post]
codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None

Hello,

I have been working on a UPnP plugin for DivX Connected (that I called Fireball). It allows someone to browse and play content from UPnP servers (including XBMC) directly inside it. It's not completely ready, but a work in progress. Check it out there: http://www.plutinosoft.com/blog/?p=206

-c0diq

Any Updates

Any new updates on this plugin?

It's been working great feeding my remote pictures from Picasa via TVersity... slideshows, too :-)

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
No video playback still

Video playback is still not working with build 1.1.0.8. It seems that it starts buffering with TwonkyMedia but then stops. With TVersity, it doesn't even start and reports an error.

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
Fireball 1.0.0.2 out

Hi,

I have just put out a new version of Fireball that supports Photos (with slideshow). No thumbnails yet but the view does switch to Thumbs based on the upnp:class (which TwonkyVision seems to set properly). Still no video playback unfortunately...

Same place: http://plutinosoft.com/stuff/FireballInstaller.exe

-c0diq

TVersity

Very cool... I just used it to browse my TVersity server :-)

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
Cool!

Yeah, browsing works great with TVersity as well but video playback is still not working unfortunately. And they are HTTP 1.1 compliant so it's definitely a problem with Divx Connected.

Can you confirm it doesn't work for you either?

-s

Video Playback

I can confirm no for Video playback, but Audio and Photos are working fine. Even remote feeds for audio/photos work great (e.g. picasa).

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
First release

As promised, the first very early version of Fireball!

http://plutinosoft.com/stuff/FireballInstaller.exe

Unfortunately only mp3 playback works for now, I can't seem to get video working. Haven't had time to look at photos yet, need to work on the thumb control...

Let me know if you like it (or you don't)...

-c0diq

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
MSX.mediaController.playFileURI not working

Hi,

Ok thanks. I was able to get playback working finally. I am kinda new at javascript and it's tough without a true debugger. I was wondering, where are all the messages going when using MSX.print?

-c0diq

dsalmonsen
dsalmonsen's picture
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 05/15/2007
Posts: 779
MSX.print outputs to the debug console.

You can enable the debug console with the ‘Show DivX Connected Server Debug Console’ link in the SDK. The debug console will then appear the next time the server is started.

dsalmonsen
dsalmonsen's picture
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 05/15/2007
Posts: 779
This is awesome

Let me know if you have any questions regarding the SDK for content playback. I can get you in touch with the right person with the answers if needed.

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
DCDownloager not liking url or http response

Hi,

So I got audio playback working via UPnP (HTTP) however video is not working. I found out a few things (by analyzing the stage6 service and urls being used). Here's what I found out so far:

- The url passed to playFileURI must have a port 80 otherwise no requests are made! This is a big problem for UPnP, servers can assign any port.
- When I hacked my upnp server to use port 80, it still doesn't work but I do get a bunch of the same requests made but suddenly aborted. I am guessing it is not finding some headers in the HTTP response.

Here's a dump of one request/response instance:

GET /content?path=saber.divx HTTP/1.1
Host: 192.168.1.30
User-Agent: DCDownloadManager
Accept-Ranges: bytes
Connection: close

HTTP/1.0 200 OK
Server: Platinum/0.3.8
Accept-Ranges: bytes
Content-Type: video/avi
Connection: close
User-Agent: Platinum/0.3.8
Content-Length: 245655156

RIFFlf..AVI LISTP...hdrlavih8...........................................................LIST|...strlstrh8...vidsDIVX.................]...........o..................strf(..

Then BLAM it stops in the middle and then send the same request again.
So I am pretty much stuck at this point. I think it's a problem with the DCDownloadManager...
Looking at the request the stage6 server returns (HTTP 1/1), it has some extra headers. The DownloadManager should be able to handle the HTTP 1.0 though.

Any ideas would be greatly appreciated. In the meantime, I worked on an installer and should be able to send the plugin around in a few days. I am going to work on the photos now hoping that the problem doesn't happen there as well...

-codiq

ps
You can email me directly at sylvain at plutinosoft dot com if you'd rather keep this private.
Cheers

dsalmonsen
dsalmonsen's picture
User offline. Last seen 1 year 2 weeks ago. Offline
Joined: 05/15/2007
Posts: 779
Currently, we only support DivX Streaming with HTTP 1.1

Out of the box, the Connected Server supports DivX AVI streaming from an HTTP 1.1 compliant server

In the short-term, it might be possible to make our AVI streamer work with HTTP 1.0 (albeit with reduced functionality such as no trick mode support).

codiq
codiq's picture
User offline. Last seen 3 years 41 weeks ago. Offline
Joined: 01/18/2008
Posts: 8
Groups: None
Yes but...

Hello,

Ok I can see why HTTP 1.1 might make sense for trick mode but I don't think that it's just the problem. I also tried with TwonkyMedia server which is DLNA compliant (thus HTTP 1.1 compliant) and it still won't work with it (maybe for different reasons). I thought it was the port not being 80 but even after forcing Twonky to use port 80, it still didn't fix it. I don't even see the requests being made to the server so it may have something to do with the url not being parsed properly by Divx Connected.

Twonky has a 30 day trial if you want and have the time to see what's wrong with it (http://www.twonkyvision.com/). I don't know what else I can do here.

Cheers,

-codiq

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.