Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Error playing videos from password-protected directories on iOS


I've added several videos to our site which are password-protected. Specifically, the entire directory (including all HTML and JS files, including JW Player) are protected with a .htaccess/.htpasswd pair (AuthType Basic).

The standard computers/web browsers I've tested work fine. However iOS devices fail when starting the video (tapping the "play" icon), displaying "Error loading media: File could not be played."

If I remove the .htaccess file, the videos play fine on iOS.

I use a self-hosted JW Player (Premium), but I've also tried the hosted JW Player using the Publish Wizard. The results are the same. I'd like to solve this because I'm anticipating the viewers of these videos will want to view using iPads.

My current workaround is to provide direct links to the videos, which work fine (bypassing JW Player and playing directly into the browser). This isn't ideal due to loss of related data that would be visible on the HTML page.

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Can you provide an example link?

cable

User  
0 rated :

So *that's* interesting. My web host upgraded PHP from 5.2 to 5.3 today. After that upgrade, the video works fine on iOS. Absolutely no reason I can think of, as the page in question didn't even use PHP.

For now, for unknown reasons, this problem has resolved itself...

Ethan Feldman

JW Player Support Agent  
2 rated :

Weird…glad you got it working though.

This question has received the maximum number of answers.