<div dir="ltr">Hi Kai,<div><br></div><div>Why not consider putting up the videos on youtube.</div><div><br></div><div>this also offload the server as well.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 16, 2018 at 6:11 PM, Schliemann, Kai <span dir="ltr"><<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="blue" vlink="purple">
<div class="m_-8451179997185039170WordSection1">
<p class="MsoNormal"><span>Hi Filip,<u></u><u></u></span></p>
<p class="MsoNormal"><span>thank you very much for your answer. In the meantime we found out, what the problem was.<u></u><u></u></span></p>
<p class="MsoNormal"><span>There was an Apache proxy server which filtered the correct header.<u></u><u></u></span></p>
<p class="MsoNormal"><span>Best regards<u></u><u></u></span></p>
<p class="MsoNormal"><span>Kai<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Von:</b> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.<wbr>org</a> <<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.<wbr>org</a>>
<b>Im Auftrag von </b><a href="mailto:Filip.Kratochvil@ibacz.eu" target="_blank">Filip.Kratochvil@ibacz.eu</a><br>
<b>Gesendet:</b> Mittwoch, 16. Mai 2018 10:55<br>
<b>An:</b> The OpenCms mailing list <<a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a>><br>
<b>Betreff:</b> Re: [opencms-dev] OpenCms 10.0.1 with Tomcat 8 and Apache 2.2: Playback of video files in iMacs, iPads and iPhones not possible (problem with Byte Range Header?)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi Kai,<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">we serve video files by Apache (directly from filesystem).<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">You can check this article, but we didn't implement it:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><a href="http://balusc.omnifaces.org/2009/02/fileservlet-supporting-resume-and.html" target="_blank">http://balusc.omnifaces.org/<wbr>2009/02/fileservlet-<wbr>supporting-resume-and.html</a><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">Probably the easiest solution is uploading video files to some CDN/streaming service outside of OpenCms.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">S pozdravem / Kind regards<br>
<br>
Filip Kratochvil<br>
OpenCms Consultant<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><br>
<span style="color:#990099"><a href="mailto:-----opencms-dev-bounces@opencms.org" target="_blank">-----opencms-dev-bounces@<wbr>opencms.org</a> wrote: -----</span><u></u><u></u></span></p>
<div>
<div style="border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">To: "'The OpenCms mailing list (<a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a>)'" <<a href="mailto:opencms-dev@opencms.org" target="_blank">opencms-dev@opencms.org</a>><br>
From: "Schliemann, Kai" <br>
Sent by: <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.<wbr>org</a><br>
Date: 05/11/2018 11:44AM<br>
Subject: [opencms-dev] OpenCms 10.0.1 with Tomcat 8 and Apache 2.2: Playback of video files in iMacs, iPads and iPhones not possible (problem with Byte Range Header?)<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Courier New"">Hi list,<br>
we have a problem with playing video (mp4) files on iMacs, iPads and iPhones.<br>
We are almost sure, that we could track it down to the issue described in this thread on Stackoverflow:
<a href="https://stackoverflow.com/questions/3397241/does-iphone-ipad-safari-require-accept-ranges-header-for-video" target="_blank">
https://stackoverflow.com/<wbr>questions/3397241/does-iphone-<wbr>ipad-safari-require-accept-<wbr>ranges-header-for-video</a>.<br>
<br>
Furthermore we could find out, that when calling the video directly through Apache, the correct header is delivered:<br>
curl -k -i --head --header "Range: bytes=50-100" <a href="http://mydomain/video.mp4" target="_blank">
http://mydomain/video.mp4</a><br>
HTTP/1.1 206 Partial Content<br>
Date: Wed, 09 May 2018 14:25:39 GMT<br>
Server: Apache/2.4.18 (Ubuntu)<br>
Last-Modified: Wed, 28 Feb 2018 09:20:30 GMT<br>
ETag: "bde8f-56642411f5380"<br>
Accept-Ranges: bytes<br>
Content-Length: 51<br>
Content-Range: bytes 50-100/777871<br>
Content-Type: video/mp4<br>
Accessing the page directly via Tomcat delivers the wrong header:<br>
<br>
curl -k -i --head --header "Range: bytes=50-100" <a href="http://mydomain:8080/video.mp4" target="_blank">
http://mydomain:8080/video.mp4</a><br>
HTTP/1.1 200 OK<br>
Server: OpenCms/10.0.1<br>
Last-Modified: Wed, 28 Feb 2018 09:20:30 GMT<br>
Expires: Thu, 10 May 2018 14:30:55 GMT<br>
Cache-Control: max-age=86400<br>
Content-Type: video/mp4<br>
Content-Length: 777871<br>
Date: Wed, 09 May 2018 14:30:55 GMT<br>
Furthermore we found out, that there is a config option "useAcceptRanges" in Tomcats web.xml. But this is set to "true" by default. Setting this option explicitly did not change the behaviour.<br>
In OpenCms' web.xml ist that option not overwritten, which leaves us clueless.<br>
<br>
Does anyone already had this problem and solved it?<br>
Any idea is very welcome.<br>
<br>
Best regards<br>
Kai<br>
______________________________<wbr>____________<br>
<br>
Kai Schliemann<br>
Dipl.-Wirtschaftsingenieur (FH)<br>
Senior IT-Berater Softwareentwicklung<br>
ISTQB® Certified Tester - Foundation Level<br>
comundus GmbH<br>
Heerstraße 111, D-71332 Waiblingen<br>
Durchwahl +49 7151 96528-120<br>
Zentrale +49 7151 96528-0<br>
Fax +49 7151 96528-999<br>
E-Mail <a href="mailto:k.schliemann@comundus.com" target="_blank">k.schliemann@comundus.com</a><<a href="mailto:k.schliemann@comundus.com" target="_blank">mai<wbr>lto:k.schliemann@comundus.com</a>><br>
Internet <a href="http://www.comundus.com" target="_blank">www.comundus.com</a><<a href="http://www.comundus.com/" target="_blank">http://www.<wbr>comundus.com/</a>><br>
<br>
Geschäftsführer Thomas Behrend, Siegfried Fitzel, Klaus Hillemeier<br>
Amtsgericht Stuttgart, HRB 264290<br>
______________________________<wbr>____________<br>
<br>
comundus auf:<br>
<br>
[32-facebook]<<a href="https://www.facebook.com/Comundus-GmbH-163398933697079/" target="_blank">https://www.<wbr>facebook.com/Comundus-GmbH-<wbr>163398933697079/</a>> [32-twitter] <<a href="http://twitter.com/comundus" target="_blank">http://twitter.com/comundus</a>> [32-googleplus] <<a href="https://plus.google.com/104173225760825167528/posts" target="_blank">https://plus.google.com/<wbr>104173225760825167528/posts</a>>
[32-xing] <<a href="https://www.xing.com/companies/comundusgmbh" target="_blank">https://www.xing.com/<wbr>companies/comundusgmbh</a>> [32-youtube] <<a href="https://www.youtube.com/channel/UCTTN-c169oHvHDrykuKnMQw" target="_blank">https://www.youtube.com/<wbr>channel/UCTTN-<wbr>c169oHvHDrykuKnMQw</a>><br>
<br>
</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Courier New"">______________________________<wbr>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
<br>
</span><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><br>
<br>
[attachment "image001.png" removed by Filip Kratochvil/Ibacz/cz]<br>
[attachment "image002.png" removed by Filip Kratochvil/Ibacz/cz]<br>
[attachment "image003.png" removed by Filip Kratochvil/Ibacz/cz]<br>
[attachment "image004.png" removed by Filip Kratochvil/Ibacz/cz]<br>
[attachment "image005.png" removed by Filip Kratochvil/Ibacz/cz]<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"><u></u> <u></u></span></p>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">
<hr size="2" width="100%" align="center">
</span></div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">Disclaimer:<br>
<br>
The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it.<br>
It may contain confidential or legally privileged information.<br>
If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful.<br>
If you have received this communication in error, please notify us immediately by forwarding this email to
<a href="mailto:ict@ibacz.eu" target="_blank">ict@ibacz.eu</a> and then delete it from your system.<br>
IBA Group is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.<u></u><u></u></span></p>
</div>
</div>
</div>
<br>______________________________<wbr>_________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-<wbr>bin/mailman/listinfo/opencms-<wbr>dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><p><font size="2" color="#8f8f8f" face="Verdana"><b>Pan Zhiwei .</b> Technical Director <br></font></p><p><font size="2" color="#8f8f8f" face="Verdana"><b>D3signs Pte Ltd</b>. 60 Paya Lebar Rd #10-36 Paya Lebar Square Singapore 409051.<br>
Company Registration No: 199900578E</font> </p><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>