[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?)

Schliemann, Kai K.Schliemann at comundus.com
Fri May 11 11:43:30 CEST 2018


Hi list,
we have a problem with playing video (mp4) files on iMacs, iPads and iPhones.
We are almost sure, that we could track it down to the issue described in this thread on Stackoverflow: https://stackoverflow.com/questions/3397241/does-iphone-ipad-safari-require-accept-ranges-header-for-video.

Furthermore we could find out, that when calling the video directly through Apache, the correct header is delivered:
curl -k -i --head --header "Range: bytes=50-100" http://mydomain/video.mp4
HTTP/1.1 206 Partial Content
Date: Wed, 09 May 2018 14:25:39 GMT
Server: Apache/2.4.18 (Ubuntu)
Last-Modified: Wed, 28 Feb 2018 09:20:30 GMT
ETag: "bde8f-56642411f5380"
Accept-Ranges: bytes
Content-Length: 51
Content-Range: bytes 50-100/777871
Content-Type: video/mp4
Accessing the page directly via Tomcat delivers the wrong header:

curl -k -i --head --header "Range: bytes=50-100" http://mydomain:8080/video.mp4
HTTP/1.1 200 OK
Server: OpenCms/10.0.1
Last-Modified: Wed, 28 Feb 2018 09:20:30 GMT
Expires: Thu, 10 May 2018 14:30:55 GMT
Cache-Control: max-age=86400
Content-Type: video/mp4
Content-Length: 777871
Date: Wed, 09 May 2018 14:30:55 GMT
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.
In OpenCms' web.xml ist that option not overwritten, which leaves us clueless.

Does anyone already had this problem and solved it?
Any idea is very welcome.

Best regards
Kai
__________________________________________

Kai Schliemann
Dipl.-Wirtschaftsingenieur (FH)
Senior IT-Berater Softwareentwicklung
ISTQB® Certified Tester - Foundation Level
comundus GmbH
Heerstraße 111, D-71332 Waiblingen
Durchwahl  +49 7151 96528-120
Zentrale      +49 7151 96528-0
Fax             +49 7151 96528-999
E-Mail    k.schliemann at comundus.com<mailto:k.schliemann at comundus.com>
Internet www.comundus.com<http://www.comundus.com/>

Geschäftsführer Thomas Behrend, Siegfried Fitzel,  Klaus Hillemeier
Amtsgericht Stuttgart, HRB 264290
__________________________________________

comundus auf:

[32-facebook]<https://www.facebook.com/Comundus-GmbH-163398933697079/> [32-twitter] <http://twitter.com/comundus>  [32-googleplus] <https://plus.google.com/104173225760825167528/posts>  [32-xing] <https://www.xing.com/companies/comundusgmbh>  [32-youtube] <https://www.youtube.com/channel/UCTTN-c169oHvHDrykuKnMQw>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 33420 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20180511/f8862a79/attachment.bin>


More information about the opencms-dev mailing list