supernoob
26th October 2009, 15:04
Hi.
Im like 34489 other people looking for a working flash solution working together with a shoutcast server.
1. Icecast needs to be recompiled cuase of some content length problem.
"There's an outstanding bug in Flash Player 8/9 that gives an incorrect value for the amount of data downloaded when looking at Icecast2 or Shoutcast streams via a web browser (due to a missing 'content-length' header). "
2. Shoutcast DNAS does not support crossdomain.xml
3. constant streaming from FLASH will crash the browser after a while since the data is never flushed and the resources will drain eventually.
Well people I will give you a simple flash program that solves all this.
This is the first time i touch flash so please dont laugh. te code is put together from one app demoing how to make a volume control and the other piece of code is from one guy playing winamp on a WII.
I made the volume control work. play and stop does not do anything. if you enhance the code please post your code in this thread. For example i set the volume on release but it's dead simple to continiusly change the volume when dragging.
Anyway.
to solve '2' launch the swf like this:
Code:
<head>
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF('iminalurar2.swf', 'player', '320', '240', '9', false, false, false, false);
</script>
<head>
<body>
<div id="playercontainer" class="playercontainer">
<a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin to see this video.</a></div>
</body>
Im like 34489 other people looking for a working flash solution working together with a shoutcast server.
1. Icecast needs to be recompiled cuase of some content length problem.
"There's an outstanding bug in Flash Player 8/9 that gives an incorrect value for the amount of data downloaded when looking at Icecast2 or Shoutcast streams via a web browser (due to a missing 'content-length' header). "
2. Shoutcast DNAS does not support crossdomain.xml
3. constant streaming from FLASH will crash the browser after a while since the data is never flushed and the resources will drain eventually.
Well people I will give you a simple flash program that solves all this.
This is the first time i touch flash so please dont laugh. te code is put together from one app demoing how to make a volume control and the other piece of code is from one guy playing winamp on a WII.
I made the volume control work. play and stop does not do anything. if you enhance the code please post your code in this thread. For example i set the volume on release but it's dead simple to continiusly change the volume when dragging.
Anyway.
to solve '2' launch the swf like this:
Code:
<head>
<script src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF('iminalurar2.swf', 'player', '320', '240', '9', false, false, false, false);
</script>
<head>
<body>
<div id="playercontainer" class="playercontainer">
<a id="player" class="player" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Get the Flash Plugin to see this video.</a></div>
</body>