<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">good idea. This isn’t possible in this setup.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Best regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Kai<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b>Von:</b> opencms-dev-bounces@opencms.org <opencms-dev-bounces@opencms.org>
<b>Im Auftrag von </b>Pan Zhi wei<br>
<b>Gesendet:</b> Mittwoch, 16. Mai 2018 13:51<br>
<b>An:</b> The OpenCms mailing list <opencms-dev@opencms.org><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?)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Kai,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Why not consider putting up the videos on youtube.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">this also offload the server as well.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, May 16, 2018 at 6:11 PM, Schliemann, Kai <<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi Filip,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">thank you very much for your answer. In the meantime we found out, what the problem was.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">There was an Apache proxy server which filtered the correct header.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best regards<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Kai<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>Von:</b>
<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> <<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.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?)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">Hi Kai,</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">we serve video files by Apache (directly from filesystem).</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">You can check this article, but we didn't implement it:</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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/2009/02/fileservlet-supporting-resume-and.html</a></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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.</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif">S pozdravem / Kind regards<br>
<br>
Filip Kratochvil<br>
OpenCms Consultant</span><o:p></o:p></p>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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@opencms.org</a> wrote: -----</span></span><o:p></o:p></p>
<div>
<div style="border:none;border-left:solid black 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<p class="MsoNormal" style="mso-margin-top-alt:auto;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.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?)</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;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/questions/3397241/does-iphone-ipad-safari-require-accept-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>
__________________________________________<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">mailto: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.comundus.com/</a>><br>
<br>
Geschäftsführer Thomas Behrend, Siegfried Fitzel,  Klaus Hillemeier<br>
Amtsgericht Stuttgart, HRB 264290<br>
__________________________________________<br>
<br>
comundus auf:<br>
<br>
[32-facebook]<<a href="https://www.facebook.com/Comundus-GmbH-163398933697079/" target="_blank">https://www.facebook.com/Comundus-GmbH-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/104173225760825167528/posts</a>>  [32-xing] <<a href="https://www.xing.com/companies/comundusgmbh" target="_blank">https://www.xing.com/companies/comundusgmbh</a>>
  [32-youtube] <<a href="https://www.youtube.com/channel/UCTTN-c169oHvHDrykuKnMQw" target="_blank">https://www.youtube.com/channel/UCTTN-c169oHvHDrykuKnMQw</a>></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><span style="font-size:12.0pt;font-family:"Courier New"">_______________________________________________<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-bin/mailman/listinfo/opencms-dev</a><br>
<br>
</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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]</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif"> </span><o:p></o:p></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" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><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.</span><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<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-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<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>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#8F8F8F">Pan Zhiwei .</span></b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#8F8F8F"> Technical Director
</span><o:p></o:p></p>
<p><b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#8F8F8F">D3signs Pte Ltd</span></b><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#8F8F8F">. 60 Paya Lebar Rd #10-36 Paya Lebar Square Singapore 409051.<br>
Company Registration No: 199900578E</span> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</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>
</div>
</body>
</html>