Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Serving files through PHP/htaccess Auth - iOS Problem

3 replies [Last post]
Reply

Hi,

we have a problem serving our mp4-Files to iOS devices.
We use a htaccess File to check wheather a user has the rights to access the requested file.
If the user has the rights, the file is served via readfile();

This was not working for us, so i tried mod_xsendfile for apache, but this isn't working either. If i check the headers sent by mod_xsendfile, it is always: "Content-Type: plain/html"

Any suggestions?

Greets

Reply

Do you have a link?

Reply

I knew this was coming :p

2 steps back!
Sorry for the missunderstanding, this is no iOS problem.
Its an android-problem and i found the cause, but i have no idea how to solve it.

Steaming on iOS devices works great, but android has a weird problem:
When I am trying to playback the video, i get the message that the video could not be loaded. So i checked the access logs and i found out the following:
The Player sends the file request to the server, but without sending any cookies!
Even the user-agent is changed from Opera[.....] to "stagefright/1.1 (Linux;Android 2.3.3)"
Because no cookies are sent, server cant check the file permissions and denies the request.

I think a link isn't needed anymore. I would need to give you access to the request logs to see the problem.

Reply

I think one is, I have no idea what's going on here. Usually providing a link helps us actually debug the issue instead of blindly guessing as to what it is.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options