: HTML5 videos don't play on iOS devices when served with Apache on OSX Mavericks I'm running Apache as a web server on OSX Mavericks on a home machine. Videos in the HTML5 <video> tag
I'm running Apache as a web server on OSX Mavericks on a home machine.
Videos in the HTML5 <video> tag do not play on iOS devices. They do play on other devices (laptop, desktop, OSX, Windows, Firefox, …)
The required AddType directives are present in an .htaccess file.
The same videos with the same HTML do play on iOS devices if I put them on my hosting service, which also runs Apache.
The sample video in the W3Schools <video> tag also runs on iOS, but if I copy that video onto my home server it again fails to play on iOS devices.
The only difference I can observe is that my Apache server runs on top of OSX Mavericks.
The HTML is very simple:
<!DOCTYPE html>
<html>
<body>
<video width="320" height="240">
<source src="test.mp4" type="video/mp4; codecs=avc1.42E01E,mp4a.40.2" />
</object>
</video>
</body>
</html>
Here is a dump of the headers for the video:
$ curl --head cailliaucloud.org/Alphabetical/aa/mov_bbb.mp4
HTTP/1.1 200 OK
Date: Sat, 17 Sep 2016 12:59:35 GMT
Server: Apache/2.2.26 (Unix) PHP/5.4.30 mod_fastcgi/2.4.6 mod_ssl/2.2.26 OpenSSL/0.9.8za DAV/2
Last-Modified: Mon, 06 Jan 2014 09:29:01 GMT
ETag: "c080d-4ef49e3d6d140"
Accept-Ranges: bytes
Content-Length: 788493
MS-Author-Via: DAV
Vary: User-Agent
Content-Type: video/mp4
Any suggestions?
More posts by @Murray155
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.