[coherence-dev] ReverseProxyResource with big files

jean-michel Sizun jm.sizun at googlemail.com
Wed Apr 15 10:49:30 CEST 2009


No problem.
You may try to use the Youtube proxy class (TestVideoProxy) with proxy_mode
= 'proxy'. The proxy will follow the redirects for you and then proxy the
real file.
I'll be happy to help with this class, if you want to reuse it. I reckon it
is quite Spaghetti-styled and undocumented. This could be a good opportunity
to document, factorize and/or clean it up.
Regards,
Jean-Michel


2009/4/15 Dominik <dominikruf at googlemail.com>

>
> I am totally sorry. I just realized that all the links for the "big files"
> are returning redirects.
> So it is not the fault of the proxy.
>
>
> Hi,
> can you give an example of the URL you're trying to access?
> regards,
> Jean-Michel
>
>
> Dominik wrote:
> > 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
> >
>
> _______________________________________________
> coherence-dev mailing list
> coherence-dev at lists.beebits.net
> http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
>
>
>
> --
> View this message in context:
> http://n2.nabble.com/ReverseProxyResource-with-big-files-tp2633665p2637489.html
> Sent from the coherence-dev mailing list archive at Nabble.com.
>
> _______________________________________________
> coherence-dev mailing list
> coherence-dev at lists.beebits.net
> http://lists.beebits.net/cgi-bin/mailman/listinfo/coherence-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.beebits.net/pipermail/coherence-dev/attachments/20090415/516ef7d5/attachment.htm>


More information about the coherence-dev mailing list