Julien Stegle | 21 Aug 2012 08:58
Picon
Favicon
Gravatar

collective.flowplayer with cache and balancer

Hi,

We've been recently found us encountering some problems displaying 
videos using collective.flowplayer.

While accessing directly to one of the Zope instance works perfectly, 
using cache and/or balancer cause the player to "crash". Using the 
flowplayer debug options we couldn't found any error trace, basically 
the video is just not loaded, we've got a black flash screen that should 
display a play button which never appears.

I was wondering if anyone had similar issues using this product ?

Cheers,
--

-- 
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Mike Rhodes | 22 Aug 2012 12:00
Picon
Favicon
Gravatar

Re: collective.flowplayer with cache and balancer

This should be on the Product Developers list. However:

We had some issues with video streaming through a Varnish cache, though 
only to iOS clients IIRC. From an internal note on the subject:

"""
Varnish strips out headers required for iPad video, how to add them back:

FYI, this weekend I discovered that Varnish removes the 'Accept-range' 
header from responses, which is required for videos on iOS.

Found a useful blog post (with fix, which I have implemented on Belron) 
here:

http://devblog.seomoz.org/2011/05/how-to-cache-http-range-requests/

Basically:

sub vcl_fetch {
   ...

   /* Varnish appears to strip Accept-Ranges: and
      Content-Range:, so we set these X-* headers and then
      clean them up in vcl_deliver. */
   if (beresp.http.Accept-Ranges) {
     set beresp.http.X-Accept-Ranges =
       beresp.http.Accept-Ranges;
   }
   if (beresp.http.Content-Range) {
     set beresp.http.X-Content-Range =
(Continue reading)

Julien Stegle | 22 Aug 2012 13:43
Picon
Favicon
Gravatar

Re: collective.flowplayer with cache and balancer

Hi,

Sorry for using the wrong list.
Just an update to say that we fixed the issue.

The problem was due to some browsers' cache management (chrome, IE,...), 
causing problems with streamed objects (in our case, flowplayer controls 
and audio plugins).
We fixed this by updating the apache settings in our buildout, so that 
streamed files won't be cached anymore:

[apache]
recipe = plone.recipe.apache:config
...
extras =
...
     SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png|zip|tgz|gz|rar|ace|swf|flv|mov|mp4|avi|mkv|ogg|ogv|mp3|webm|pdf)$ 
no-gzip dont-vary
...

Best regards,
Julien Stegle

Le 22/08/2012 12:00, Mike Rhodes a écrit :
> This should be on the Product Developers list. However:
>
> We had some issues with video streaming through a Varnish cache, 
> though only to iOS clients IIRC. From an internal note on the subject:
>
(Continue reading)


Gmane