mp4 does not work on iPad using .htaccess

HTML5-Code:

<video id="video1" class="video" poster="img/poster.png">

<source src="video1.webm" type="video/webm" >

<source src=video1.mp4" type="video/mp4" >

</video>


works on iPad without problems using webserver (Apache, PHP7).


If I use the same configuration with .htaccess the video will not be loaded and played. This is a problem with iPad only. Desktop (Win7, Win8, Win10, OS-X) or Android Tables are loading the mp4 without any problems.


htaccess-Code:

AuthUserFile serverpath/pasbin/.htpasswd

AuthName "LOGIN REQUEST"

AuthType Basic

require valid-user

order deny,allow

deny from all

Satisfy Any

You must add tag is preload and cotrols/autoplay.

that is like this.


<video id="video1" class="video" poster="img/poster.png" preload="none" controls>

<source src="video1.webm" type="video/webm">

<source src="video1.mp4" type="video/mp4">

</video>


At first the preload is on memory capacities buffer size that is set auto by any mobiles. So mp4's file size is too big for memory capacities.

At secound you don't set movie control tag is controls or autoplay.

Let's try it!

.htaccess is diffirent probrem.

.htaccess can set cgi or pl or php is move or not.

And .htaccess can set adddriver sgi-script cgi pl php.


If you must move cgi program on your directory, You must change the server's conf file for .htaccess.

Which version iOS on that iPad?

mp4 does not work on iPad using .htaccess
 
 
Q