randomGuy
randomGuy

Reputation: 85

AS3 Shoutcast stream doesn't work on server

There's a code that works while I'm trying it in FLASH. It streams shoutcast :

var soundOBJ : Sound = new Sound();
soundOBJ.load(new URLRequest("http://176.9.42.221:8000/"));
soundOBJ.play( );

When I publish it and deliver on server, shoutcast doesn't stream! Can someone advice on how to fix this?

Upvotes: 1

Views: 618

Answers (1)

Brad
Brad

Reputation: 163301

Put a semicolon at the end of your URL.

soundOBJ.load(new URLRequest("http://176.9.42.221:8000/;"));

SHOUTcast servers will return an admin panel if they detect "Mozilla" in your User-Agent. This gets around the problem.

Upvotes: 1

Related Questions