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

HTTP Basic Auth


Hi

How can I pass username and password in URL to access file protected by HTTP Basic Authentication?
like http://username:password@server.com/myfile.mp4

We used flowplayer before and didn't have such problems.

Right now, in JWPlayer we try like this:

jwplayer('player').setup({
'width': '800',
'height': '471',

sources: [{
file: "http://username:password@server.com/myfile.mp4"
}],


but it doesn't work, we got password mismatch in HTTP server log.

Regards

1 Community Answers

Cooper Reid

JW Player Support Agent  
0 rated :

Hello,

It’s not clear to me exactly what the problem is. Can you send me a link so I can troubleshoot more effectively? I don’t recommend trying to put your plain text password in your javascript source code. I’m not sure why this isn’t working without being able to take a look at the page -

Regards,
Cooper

This question has received the maximum number of answers.