Streaming a video file that is located in an online password protected directory (.htaccess) SOLVED

jdiperla

New member
Nov 27, 2012
3
0
0
Visit site
The question has been solved. If anyone is interested, try using MX Player. It worked best. All you have to do is have the username and password put in together into the URL after http, but before the URL of the video file. So lets say the directory is protected by the username FrancisFord and the password is Copola and the URL is http://www.myvideos.com/hitch.mp4, you would enter this address when streaming from a URL:

So the formula is this: http://username:password@url/videofile. Remember to remove the www from the URL and that the username comes first then the password seperated by a colon, followed by the @ symbol. I hope that makes sense. Here is an example:

http://FrancisFord:Copola@myvideos.com/hitch.mp4 .

So, I have video's uploaded to my personal site. I password protected the directory with .htaccess. The permissions of the videos are set to 777. If I surf to the directory of the video through the browser on my Galaxy S II, it asks for a username and password and then displays the files that are there. When I click on a file, it tells me that I cant play the video and thats with any video player I use. If I try to play the video in my browser itself by putting it into something like JW player, it also doesn't work. The only time it works is when I unprotect the directory. Then it streams it fine.

I am using A Samsung Galaxy SII (s2) or Epic 4G touch from Sprint. I have Cyanogen Mod 10, beta 2 with Jelly Bean on it. I use the built in browser and also Chrome. The video players I have tried using to no avail are:

Daroon Player
ES Media Player
MX Player
FPlayer
Rockplayer lite
Showtime Player panel
Stock Android Video player.

Any suggestions to getting around this problem? I really would like to use a video player and not the browser and the directory must be protected. Thanks in advance for the help.
 
Last edited:

jdiperla

New member
Nov 27, 2012
3
0
0
Visit site
Re: Streaming a video file that is located in an online password protected directory (.htaccess)

No thoughts? Not even a streaming app that can stream an .h264 mp4 file from a password protected URL?
 

jdiperla

New member
Nov 27, 2012
3
0
0
Visit site
Re: Streaming a video file that is located in an online password protected directory (.htaccess)

This has been solved. Look at the first post for how you can do the same.

- - - Updated - - -

This has been solved. Look at the first post for how you can do the same.