quikava04 / flowplayer-plugins

Automatically exported from code.google.com/p/flowplayer-plugins
0 stars 0 forks source link

Basic authentication not working in IE and Chrome browsers #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Set up Icecast to use basic authentication
2. Use the appropriate URL with basic auth to play the MP3 stream, using 
Flowplayer's MP3 plugin.

What is the expected output? What do you see instead?

The audio should play. This works in Firefox, but fails in Chrome and IE7+ 
browsers. 

What version of the product are you using? On what operating system?

Tested on Mac OS X and Windows XP, Firefox 3.6 and 4.0, IE8, Chrome 10.0

Flowplayer version 3.1.5
Flowplayer.audio version 3.2.2 

Please provide any additional information below.

Internet Explorer does not support user names and passwords in Web site 
addresses (HTTP or HTTPS URLs):
http://support.microsoft.com/kb/834489

The current solution seems to rely on the browser to handle authentication, but 
what is needed is to handle it in flash, so something akin to what is described 
here:
http://stackoverflow.com/questions/1631097/basic-authentication-with-flash

Original issue reported on code.google.com by peter.st...@gmail.com on 11 Apr 2011 at 1:13

GoogleCodeExporter commented 8 years ago
You should point your Icecast Auth to some PHP/ASP Script,
in my case i added a string to the mount eg.
http://server:port/mount.mp3?authcode
then my php script just strip the authcode from the $_GET["mount"] sent by the 
Icecast request, and authenticate it.
read more @
http://www.icecast.org/docs/icecast-2.3.2/icecast2_listenerauth.html
move down to the URL section for reading how to set a custom Auth script.

another thing you can do is add username and password param's to your flashvars 
and add it directly at the flash code. (i did the same at some Haxe Player i 
found).

Original comment by Yahav.Sh...@gmail.com on 22 Jul 2011 at 11:28

GoogleCodeExporter commented 8 years ago
Thanks for commenting, I will close, please use this issue tracker if need be

http://code.google.com/p/flowplayer-core/issues

Original comment by dani...@electroteque.org on 29 Nov 2011 at 11:48