<div dir="ltr">Don't pipe. ever. Unless your are using websockets.<div><br></div><div>do_stream is set by default, you can remove it.</div><div><br></div><div>Are we talking aboud VoD or Live? if the latter, remember to set grace to 0, other you'll have outdated manifest problems.</div><div><br></div><div>What isn't working on Safari? Does the problem goes away if you connect straight to the origin? (ie. no varnish) What do the developer tools tell you? Have you looked at varnishlog?</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Fri, Jul 21, 2017 at 12:27 AM, Leon <span dir="ltr"><<a href="mailto:info+varnish@shee.org" target="_blank">info+varnish@shee.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Branch: varnish-5.1.2<br>
Config: mostly default<br>
<br>
Dear List,<br>
<br>
there are a lot of stuff in the results of common search engines concerning<br>
streaming mp4 files via varnish. But my mental picture is still unsharp. Therefore<br>
following questions; It seems that Safari-Browser has still a problem with such<br>
assets. I had tried two approaches:<br>
<br>
1st: Just "pass" it to the backend:<br>
<br>
vcl_recv : if ( req.url ~ "\.(mp4|webm)$" ) { return(pipe); }<br>
<br>
or<br>
<br>
2nd: Deliver it directly<br>
<br>
vcl_recv : if ( req.url ~ "\.(mp4|webm)$" ) { unset req.http.cookie; }<br>
vcl_backend_response : if ( bereq.url ~ "\.(mp4|webm)$" ) { set beresp.do_stream = true; }<br>
<br>
<br>
Both don't help to get the Safari browser to display the video content as done by the Firefox browser for example.<br>
<br>
<br>
So, the questions:<br>
<br>
Which one should be the preferential approach - in general to deliver mp4 files?<br>
<br>
Does someone has the same issues with the Safari-Browser? What could help here?<br>
<br>
In the mean time, any other suggestions would be greatly appreciated.<br>
<br>
Thanks,<br>
Leon<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
</blockquote></div><br></div>