Old 28th October 2007, 16:42   #161
bored_womble
Winamp's Womble
 
bored_womble's Avatar
 
Join Date: May 2004
Location: Wimbledon Common
Posts: 1,100
this is just based on the macromedia flash code at

http://download.macromedia.com/pub/s...sh/swflash.cab

so really no different to anyone elses ...

BW

Without open minds the world will die. Open yours and correct the mistakes you are making right now.
bored_womble is offline   Reply With Quote
Old 31st October 2007, 14:24   #162
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
Hi Sodah,

i don't think you have a shoutcast streaming in your example
pcFrank is offline   Reply With Quote
Old 31st October 2007, 15:51   #163
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
shoutcast-streams in my example:
- DIGITAL IMPORTED FM DRUM AND BASS
- Soma FM deep house
- Soma FM Space Station
etc.

please press the right mouse in my application http://shoutcast.sodah.de and load the top500 from shoutcast.com and you can see, all streams will played.


PSP compatible with RSS. Go with the PSP on http://shoutcast.sodah.de and press on RSS-Feed. Now you can listen all favourite stations over RSS-Channel on your PSP. PS3-Mod is under construction.
Sodah is offline   Reply With Quote
Old 31st October 2007, 16:49   #164
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
Well
if you don't tell us how you did
if you don't share some code with us
if you're not selling this*

what is the point of posting this here?



*i couldn't found any information that you're selling this player
pcFrank is offline   Reply With Quote
Old 31st October 2007, 17:02   #165
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
Hi,

this Player is not for sell. You can this player used free.
I use AS 3.0. It's easy to play a stream in flash.
First step is open the PLS-File for search a not busy stream. And the next step is play the stream.
PHP Code:
var sound_request:URLRequest = new URLRequest(currentURL);
sound_request.contentType "audio/mpeg";
soundFactory = new Sound();
soundFactory.addEventListener(Event.COMPLETEsound_COMPLETE);
soundFactory.addEventListener(Event.OPENsound_OPEN);
soundFactory.addEventListener(Event.ID3sound_ID3);
soundFactory.addEventListener(IOErrorEvent.IO_ERRORsound_IOERROR);
soundFactory.addEventListener(ProgressEvent.PROGRESSsound_PROGRESS);
var 
SoundContext:SoundLoaderContext = new SoundLoaderContext();
try {
    
soundFactory.load(sound_requestSoundContext);
} catch (
error:Error) {
    
//trace("Unable to load requested document.");
    
debug_me("Unable to load requested document.");
    
foundURL();
}
icecast_sound soundFactory.play();

function 
sound_COMPLETE(event:Event):void {
    
//the stream is busy, read next channel from PLS-File
    
foundURL();
}
function 
sound_OPEN(event:Event):void {
    
//debug_me("Handler: " + event);
}
function 
sound_ID3(event:Event):void {
    
//debug_me("id3Handler: " + event);
}
function 
sound_IOERROR(event:Event):void {
    
//don't found the stream, read next channel from PLS-File
    
foundURL();
}
   function 
sound_PROGRESS(event:ProgressEvent):void {
    
//debug_me("progressHandler: " + event);
    
try {
        
//----------------------------
        //Peakmeter for left and right
        //----------------------------
        
mc_interface.mc_stereopeakleftmaske.scaleX  Math.round(icecast_sound.leftPeak*10)/10;
        
mc_interface.mc_stereopeakrightmaske.scaleX  Math.round(icecast_sound.rightPeak*10)/10;
        
//----------------------------
        //Status of cache
        //----------------------------
        
mc_about.mc_abouttxt.txt_memory.text "flash memory: " numberformat((System.totalMemory/1024).toString()) + " kb";
        if (
memorypeak System.totalMemory) {
            
mc_about.mc_abouttxt.txt_memorypeak.text "flash memory peak: " numberformat((memorypeak/1024).toString()) + " kb"
        } else {
            
memorypeak System.totalMemory;
            
mc_about.mc_abouttxt.txt_memorypeak.text "flash memory peak: " numberformat((System.totalMemory/1024).toString()) + " kb"
        }
        
mc_about.mc_abouttxt.txt_load.text "stream cache: " numberformat((Math.round(event.bytesLoaded/1024)).toString()) + " kb";

    } catch (
error:Error) {
        
//error
        
}

Sodah is offline   Reply With Quote
Old 31st October 2007, 20:33   #166
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
Thank you Sodah,

i can only use AS 2.0 for now
so i'll just sit here
looking to your code and dream
pcFrank is offline   Reply With Quote
Old 24th December 2007, 18:15   #167
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
I have now a new version from my shoutcast flash radio. Exclusive for shoutcast.com
I use the deeplink technology. This features write a new URL on choice a channel/genre.
http://shoutcast.sodah.de/#/House/6668/
http://shoutcast.sodah.de/#/House/9896/
Sodah is offline   Reply With Quote
Old 28th December 2007, 22:15   #168
paradisetunes
Junior Member
 
Join Date: Feb 2007
Location: Scandinavia, Wisconsin USA
Posts: 5
Embedded Shoutcast Flash Player

I have a Shoutcast Flash Player that can be embedded within an html page. Contact me for more details.

Dan Halverson/Owner
Paradise Tunes
paradisetunes is offline   Reply With Quote
Old 29th December 2007, 09:21   #169
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
my player can be also to embeded on a hompage:

code:
<object width="240" height="200" type="application/x-shockwave-flash">
<param name="movie" value="http://shoutcast.sodah.de/shoutcast.swf?swfgenre=House&swfchannel=6668"/>
</param>
<embed src="http://shoutcast.sodah.de/shoutcast.swf?swfgenre=House&swfchannel=6668"
type="application/x-shockwave-flash"width="240" height="200"></embed></object>



variables: swfgenre, swfchannel
The values found on the URL:
http://shoutcast.sodah.de/#/House/6668/
Sodah is offline   Reply With Quote
Old 20th January 2008, 11:31   #170
bigpappa456
Junior Member
 
Join Date: Jan 2008
Posts: 1
thanx
bigpappa456 is offline   Reply With Quote
Old 20th January 2008, 13:10   #171
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
Hi,

here is the embeded code for a single stream player:

PHP Code:
<object width="149" height="105" type="application/x-shockwave-flash"><param name="movie" value="http://nativeradio.sodah.de/nativeradio.swf?swfexclusive=1&swfstreamurl=http://scfire-dll-aa04.stream.aol.com:80/stream/1007"/></param><embed src="http://nativeradio.sodah.de/nativeradio.swf?swfexclusive=1&swfstreamurl=http://scfire-dll-aa04.stream.aol.com:80/stream/1007" type="application/x-shockwave-flash"width="149" height="105"></embed></object
Variables:
swfstreamurl=http://yourstreamurl
swfexclusive=1 (webuser can't change the url)

Check your streamurl here: http://nativeradio.sodah.de

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO

Last edited by Sodah; 20th January 2008 at 15:41.
Sodah is offline   Reply With Quote
Old 20th January 2008, 15:34   #172
paradisetunes
Junior Member
 
Join Date: Feb 2007
Location: Scandinavia, Wisconsin USA
Posts: 5
Sodah,

Please share the .fla file.

Thank you!
paradisetunes is offline   Reply With Quote
Old 22nd January 2008, 05:04   #173
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
Hi Sodah,

nice one
thanks

however my site is all flash
so i cannot use the embed code (unless i use an iframe)
and when i try to use loadMovieNum()
your player background covers my site entirely
is that intentional?
pcFrank is offline   Reply With Quote
Old 8th February 2008, 11:12   #174
kroider911
Junior Member
 
Join Date: Oct 2007
Posts: 6
for those whos interested, updated

http://sourceforge.net/projects/flscplayer

New features:
*Now playing live updated.
*Change to your own look

Demo
http://kroider.com/flsc/
http://www.blokksberg.com/radio/
kroider911 is offline   Reply With Quote
Old 8th February 2008, 15:32   #175
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
@kroider911: i will listen this URLs:
http://scfire-dll-aa04.stream.aol.com:80/stream/1007
http://ware.catv.ext.ru:8135/deepmix128.mp3

what is the correct setting in your radio.php for this radio-urls?

on my native player will both urls works fine:
http://nativeradio.sodah.de/#/1199653560/
http://nativeradio.sodah.de/#/1202488157/

best regards

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO
Sodah is offline   Reply With Quote
Old 8th February 2008, 18:03   #176
kroider911
Junior Member
 
Join Date: Oct 2007
Posts: 6
Quote:
Originally posted by Sodah
@kroider911: i will listen this URLs:
http://scfire-dll-aa04.stream.aol.com:80/stream/1007
http://ware.catv.ext.ru:8135/deepmix128.mp3

what is the correct setting in your radio.php for this radio-urls?

on my native player will both urls works fine:
http://nativeradio.sodah.de/#/1199653560/
http://nativeradio.sodah.de/#/1202488157/

best regards
Well its not finished in its state, and for now it's pointet more the less against supporting the features of a shoutcast server.
(meaning Ip/hostname ~ port)
The older version with the radio.txt works with your streams.

but for now you need to enter your stream info this way (tho i dont think you intend to actually use it..)

PHP Code:
<?
/* $radio = 'insert your shoutcast server ip';
   $port = 'insert your server port';
   Ip and port already filled in is an working radiostation for test.
*/
$radio 'ware.catv.ext.ru:8135/deepmix128.mp3';
$port '';
echo 
"radio=http://$radio$port?;";
?>

And..


PHP Code:
<?
/* $radio = 'insert your shoutcast server ip';
   $port = 'insert your server port';
   Ip and port already filled in is an working radiostation for test.
*/
$radio 'scfire-dll-aa04.stream.aol.com:80/stream/1007';
$port '';
echo 
"radio=http://$radio$port?;";
?>

I must say im amazed that you didnt just enter this youreself, come of thinking you have made the other player :P

Thx for pointing this out tho, i would have surely overlooked it in the next version.

Regards

Kroider911
kroider911 is offline   Reply With Quote
Old 8th February 2008, 18:28   #177
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
Hello kroider911,

the URL ware.catv.ext.ru:8135/deepmix128.mp3 will not work with ; on the end. Your flash-engine need a error check.
I check the server is down or busy over the sound_complete event. If sound_complete then load the url with /; on the end. This is the best way, for more compatiblity.
Next point is the 7.html - site. This is not a good solution. Just any server have this site. Better is, you read the ICY meta-tags. In this tags you found all information. Check this: www.smackfu.com/stuff/programming/shoutcast.html
and this:
http://ultravox.aol.com/Ultravox3.pdf

best regards

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO
Sodah is offline   Reply With Quote
Old 8th February 2008, 18:51   #178
kroider911
Junior Member
 
Join Date: Oct 2007
Posts: 6
it should be

URL ware.catv.ext.ru:8135/deepmix128.mp3?;

not

URL ware.catv.ext.ru:8135/deepmix128.mp3;

and it works.

Works in Opera Firefox IE7 no need for errorcheck.
and no need for more advanced scripting at the moment, its beta.
Quote:
Next point is the 7.html - site. This is not a good solution. Just any server have this site.
Your point beeing?

Its just basic information, as for now im not working much in the flash itself, more in php passing and writing functions for later use.. you did read that the player is planned with mysql database right?

But i can agree on using shorter gets for information.
kroider911 is offline   Reply With Quote
Old 8th February 2008, 19:02   #179
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
ah ok... with mysql. Can you explane me, what is benefit for mysql/shoutcast/meta information? I am to pry.

sincerly

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO
Sodah is offline   Reply With Quote
Old 8th February 2008, 19:24   #180
kroider911
Junior Member
 
Join Date: Oct 2007
Posts: 6
Uh think you got me wrong there dude.
Im not using a mysql database to store the server information, that would way to much work for...for just a few lines of storage
It wasnt intended either.
The database backbone role is storing DJ information and/or user configs, player configs itself sorted by user/dj station, genre, online offline and on and on and on and on...
But the thing is, it can be used in ex. a large community spreading all these things with using only 1 swf file.

lets say 10 users link to the same player but all settings, layout, everything are different for all of them if you get me.
And all is set by the user/dj.

You should know, im not doing this for anything or to actually use this project in any way.
Just drinking a beer, relaxing and puzzle with it when i got some spare time.

ANd why should i bother explaining you anything, you the one that asked me for help and when you got it you tell me it's wrong

No hard feelings tho, i really would have missed those little glims in those lines.

Hugs and kisses from Cold Norway
kroider911 is offline   Reply With Quote
Old 8th February 2008, 19:45   #181
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
Hi kroider911,

very nice idee!!!!

I specialised on embeded native radio in other websites. The design is not diffrent, just the color can switch:
p.e.: www.myspace.com/codingexpert

All files works directly from my server. The users need no files.

sincerly

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO
Sodah is offline   Reply With Quote
Old 8th February 2008, 20:03   #182
kroider911
Junior Member
 
Join Date: Oct 2007
Posts: 6
Hey!

Yeah something like that! niiice
but i have long way to get there just yet tho :P

A little more sparetime and a few more beers maybe hehe.
But stick around will ya, i might get stuck on something. Would be great to merge experince around this subject.
kroider911 is offline   Reply With Quote
Old 14th February 2008, 00:20   #183
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
I wanna thank Sodah for his excellent job with the native radio. There's a new version for flash integration. Check his site.

I'm using it in my 100% flash site and it works great.

Thank you once again.
pcFrank is offline   Reply With Quote
Old 14th February 2008, 17:25   #184
otacon451
Guest
 
Posts: n/a
yes, amazing, just what i was looking for! thank you so much!

I guess my only request would be slightly different appearances (maybe a black player) but thats really insignificant

*dances around room*
  Reply With Quote
Old 15th February 2008, 18:41   #185
h4ni
Junior Member
 
Join Date: Nov 2006
Posts: 11
hello
how to autoplay the NATIVE FLASH RADIO for single streams?
h4ni is offline   Reply With Quote
Old 15th February 2008, 20:05   #186
h4ni
Junior Member
 
Join Date: Nov 2006
Posts: 11
problem solved
i have an other question
how i can use the player in a localhost , when i try to download nativeradio.swf and use it in local , i get an error message

can you help me please?!
h4ni is offline   Reply With Quote
Old 16th February 2008, 01:37   #187
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
what error?
pcFrank is offline   Reply With Quote
Old 16th February 2008, 08:57   #188
h4ni
Junior Member
 
Join Date: Nov 2006
Posts: 11
STREAM URL NOT EXIST OR IS BUSY
h4ni is offline   Reply With Quote
Old 16th February 2008, 09:04   #189
h4ni
Junior Member
 
Join Date: Nov 2006
Posts: 11
i get this error in the player statu when i try to use the code like this
PHP Code:
<object width="149" height="105" type="application/x-shockwave-flash"><param name="movie" value="nativeradio.swf?swfexclusive=1&swfstreamurl=127.0.0.1:8000"/></param><embed src="nativeradio.swf?swfexclusive=1&swfstreamurl=127.0.0.1:8000" type="application/x-shockwave-flash"width="149" height="105"></embed></object
h4ni is offline   Reply With Quote
Old 16th February 2008, 16:36   #190
pcFrank
Junior Member
 
Join Date: Jan 2007
Posts: 18
127.0.0.1:8000 sounds like a local IP address
are you sure this is the correct public streaming URL?
pcFrank is offline   Reply With Quote
Old 16th February 2008, 17:00   #191
h4ni
Junior Member
 
Join Date: Nov 2006
Posts: 11
yes i am sur!
i think that i cant download nativeradio.swf and use it $-)
h4ni is offline   Reply With Quote
Old 1st July 2008, 22:13   #192
biggyspender
Junior Member
 
Join Date: Jul 2008
Posts: 19
All you need to know about Flash+Shoutcast

Posted some info on our blog that should make it easy for anyone trying to write a Flash based Shoutcast player. Memory issues remain a problem, requiring periodic reloading of the stream (as with all examples I have seen on the net).

http://www.flexiblefactory.co.uk/flexible/?p=51
biggyspender is offline   Reply With Quote
Old 18th July 2008, 23:30   #193
anjousa
Junior Member
 
Join Date: Jul 2008
Posts: 2
Re: Embedded Shoutcast Flash Player

Good evening my friend, for now i can streaming shouthcast making a button like "click here to play" but i need help how to play automatically just opening my website...
Can you help me?
Thank you!

Quote:
Originally posted by paradisetunes
I have a Shoutcast Flash Player that can be embedded within an html page. Contact me for more details.

Dan Halverson/Owner
Paradise Tunes
anjousa is offline   Reply With Quote
Old 18th July 2008, 23:33   #194
anjousa
Junior Member
 
Join Date: Jul 2008
Posts: 2
Hello, did you get the fla?
Thank you!

Quote:
Originally posted by paradisetunes
Sodah,

Please share the .fla file.

Thank you!
anjousa is offline   Reply With Quote
Old 19th July 2008, 21:43   #195
Greenport
Junior Member
 
Join Date: May 2008
Posts: 4
Re:

I've been working on doing this (not very actively) for quite some times now. I've seen it working before but not very well. Also, since I have my own webserver I've already scripted stuff that will allow it to work. But it only works on my computer

SHOUTcast is a modified form of ICYcast that doesn't use HTTP headers. As such, flash gets confused. One way around this is to have the flash file connect to a local, self-written SOCKS proxy that converts the SHOUTcast request into a simple HTTP request. The problem therein is that it requires a simple SOCKS server to be running so people can tune in.
Greenport is offline   Reply With Quote
Old 24th July 2008, 22:34   #196
biggyspender
Junior Member
 
Join Date: Jul 2008
Posts: 19
Re: Re:

Quote:
Originally posted by Greenport
I've been working on doing this (not very actively) for quite some times now. I've seen it working before but not very well. Also, since I have my own webserver I've already scripted stuff that will allow it to work. But it only works on my computer

SHOUTcast is a modified form of ICYcast that doesn't use HTTP headers. As such, flash gets confused. One way around this is to have the flash file connect to a local, self-written SOCKS proxy that converts the SHOUTcast request into a simple HTTP request. The problem therein is that it requires a simple SOCKS server to be running so people can tune in.

As posted above, I strongly suggest that you read this page:

http://www.flexiblefactory.co.uk/flexible/?p=51

before propogating any further misinformation. Shoutcast does use http headers, and no, you don't need a SOCKS server to listen to it with flash. Feel free to ask any questions you like on our blog...
biggyspender is offline   Reply With Quote
Old 2nd August 2008, 22:47   #197
farfouille
Junior Member
 
Join Date: Aug 2008
Posts: 1
Oh thanks for sharing Sodah and kroider911, nice players!
Vielen Dank! Wirklich ein ganz ausgezeichneter Programm
farfouille is offline   Reply With Quote
Old 20th August 2008, 13:04   #198
perarg
Junior Member
 
Join Date: Jul 2008
Posts: 17
First of Congratulation about your efforts to make a Flash Player.
I tried the two solutions of kroider911 and Sodha but none of them give me sound.

The url for the radio server is http://radiobash.com:8034 and we transmit aac+.

Is there any limitation with aac+ ?

Thank you very much!
perarg is offline   Reply With Quote
Old 21st August 2008, 08:16   #199
mrbarriga
Junior Member
 
Join Date: May 2008
Posts: 16
Hello Sodah, you can enter this site-com listen and watch what they are using flash and acc2, the sound quality is impressive, I do not have the slightest idea of how they do, but I am willing to pay very well if someone succeeds in making a player flash as an excellent visual quality native but with the technology they use on this site, escribeme private, as you say I am willing to pay.
mrbarriga is offline   Reply With Quote
Old 21st August 2008, 10:02   #200
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,031
Flash/shoutcast aac+ relay service

So Long, and Thanks for All the Fish.
Jkey is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump