[coherence-dev] ReverseProxyResource with big files

Dominik dominikruf at googlemail.com
Tue Apr 14 17:10:20 CEST 2009


Hi,

I am trying to write my first MediaServer backend. So far everything work fine but now I have the problem that it seems my client (XBOX 360) doesn't like URLs outside the local network.
I tried to use an proxy by setting
    self.location = ReverseProxyUriResource(url)
and
    res = DIDLLite.Resource("%s%d" % (store.urlbase, id), 'http-get:*:%s:*' % type)
This works for small files (images). But with big files (videos) some how http://<urlbase>/id doesn't work as a proxy any more.
With these big files I am getting a redirect when I make a request to http://<urlbase>/id and since the redirect points to an URL outside my local network my client doesn't like it. :-(

I looked into the sources of the youtube backend since my client works with that backend.
But the proxy stuff in the youtube backend seems quite complicate (buffering, caching, etc.).

So I hoped someone on the list can help me.

cheers
Dominik
-- 
View this message in context: http://n2.nabble.com/ReverseProxyResource-with-big-files-tp2633665p2633665.html
Sent from the coherence-dev mailing list archive at Nabble.com.




More information about the coherence-dev mailing list