Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Developing one's own Flash player to play the radio broadcast streams
Adobe Flash Player doesn't allow to connect and read AAC audio streams before it has been rebundled in an FLV streaming format. That's why you need to add '?type=.flv' as a parameter to indicate to the Icecast server that you wish to use an flv 'wrapper' for the current AAC+ stream.
The connecting functions are directly included in Flash, all you need to do is to log in using as an example the following code:
...
//Creating the connection
var nc:NetConnection = new NetConnection();
nc.connect(null);
...
//we start the audio broadasting
var ns:NetStream = new NetStream(nc);
ns.play("http://alpes1gap.ice.infomaniak.ch/alpes1gap-high.aac?type=.flv"); // Logging address exampleFor more information, we suggest you read the official documentation.
Link to this FAQ: