Old 18th February 2012, 15:33   #1
Dj_Bl3iD
Junior Member
 
Join Date: Feb 2012
Posts: 18
Flash Media Player+Show the current song

Please Someone Help Me!
Can someone please tell how to make a flash player for my shoutcast radio server in my website and the flash player also to display the current song playing and the artist too.I know how to make a flash player to broadcast the steam from my radio and i know how to create the flash player from sites like http://www.myautodj.com or http://www.wavestreaming.com but they don't support the necessary scripts to show the current song name and artist.
Please Someone Help Me I've tried so many things looked every thread in the forum but it doesn't help me either.
Dj_Bl3iD is offline   Reply With Quote
Old 20th February 2012, 04:18   #2
hackerdork
Forum King
 
hackerdork's Avatar
 
Join Date: Feb 2006
Location: Earth Circa sometime.
Posts: 3,297
wow! have you seen the 1000s of flash players and html5 player that have been around for years? The problem with flash is it does NOT read the shoutcast stream properly, and every flash player I have used point to a server that proxies the request and gets it working.
look at wave streaming site they have free flash based players.

The now playing is as easy as writing some code in PHP

a simple few lines of code shows what is being played. I use this by the way.


code:

<?php
$page = file_get_contents('http://192.168.69.250:8000/currentsong?sid=1');
echo $page;
?>



or this one :
code:

<?php
$page = file_get_contents('http://192.168.69.250:8000/currentsong?sid=1');
echo 'Current:'.$page.'<br/>';
$isnext= file_get_contents('http://192.168.69.250:8000/nextsong?sid=1');
echo "UpNext:".$isnext."<br/>";
?>



I did some ajax coding as well that displays that output in a div underneath the flashplayer so when the track title changed so did the resulting output.

Cheers

~ According to the ship's log we're down to our last 3000 vomit bags.It'll never be enough.
search the forums! don't PM me on how-to, or ask me to setup you system. you do it so you learn.
hackerdork is offline   Reply With Quote
Old 20th February 2012, 08:06   #3
Dj_Bl3iD
Junior Member
 
Join Date: Feb 2012
Posts: 18
And when i get the code for the flash player that i want from http://www.wavestreaming.com/ where do i put the code that you entered above,I mean where do i have to put the php code in the code that i get from the site for the flash player?
Dj_Bl3iD is offline   Reply With Quote
Old 20th February 2012, 18:25   #4
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,024
Send a message via Skype™ to thinktink
See my sig and find a socket policy server. If you're running on Windows try to find a copy of my SPS. If running on linux you can either wait for the next version of the DNAS (which will have a complete flash security server setup) or abuse the Transcoder for it's policy server.
thinktink is offline   Reply With Quote
Old 20th February 2012, 20:09   #5
Dj_Bl3iD
Junior Member
 
Join Date: Feb 2012
Posts: 18
Well I downloaded your files from your last or next to the last post from this thread http://forums.winamp.com/showthread.php?t=325316 ,they are the attached files but now i know that i have to edit the playlist.xml file with the ip and the port of my radio but the what exactly do i do with this policy server and socket connection?You can read them in the readme.txt file.I forgot to tell you that I'm steaming in mp3 format no with AAC+.
P.S: I don't need to put the code for the metadata in a flash player any more i found the solution in making a new php page in my website.I just need a code to display the current song.
Dj_Bl3iD is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

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