Old 28th February 2011, 22:02   #1
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Native Flash Radio won't display song title and artist!

Hello there!

I'm desperately seeking for help because of a problem I can't solve at all (as I totallyt suck at scripting).

Since many webradios use an embedded flash player in their websites, I chose Native Flash Radio v2 to support my station (its name is Radio Rush!, btw).

Well then, I download all the stuff, set example.html so that the streaming url is "radiorush.no-ip.org:8000", and upload everything via FTP, but when i start broadcasting and reach for the page where the flash player is, it shows a blank space in the song information line!

I really don't know what to do. I also created a 7.html page, following some instructions i found on the web, and uploaded it, but it didn't solve the problem.

May someone help me to understand what I should fix?

Here's a link where you can find a RAR file containing all the flash player files the way I set them up: http://www.megaupload.com/?d=3IB23I6Y

If somebody doesn't know what Native Flash Radio v2 is, check this page out: http://blog.codingexpert.de/?p=66 (the page is in German)

Thank you in advance
Yamagong is offline   Reply With Quote
Old 28th February 2011, 22:11   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Quote:
Originally Posted by Yamagong View Post
I really don't know what to do. I also created a 7.html page, following some instructions i found on the web, and uploaded it, but it didn't solve the problem.
7.html is not a page one creates, it's a page available on legacy DNAS i.e. DNAS v1.9, not in the newer beta releases (v2.x)
Quote:
Originally Posted by Yamagong View Post
Here's a link where you can find a RAR file containing all the flash player files the way I set them up: http://www.megaupload.com/?d=3IB23I6Y
file is unavailable

in general, the older flash players suck ass ... I'd look at smelters flash player on this forum somewhere

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 28th February 2011, 23:49   #3
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Quote:
Originally Posted by jaromanda View Post
7.html is not a page one creates, it's a page available on legacy DNAS i.e. DNAS v1.9, not in the newer beta releases (v2.x)
Yeah, that was what i meant, sorry...as i said, I'm completely newbie at this stuff. ^^'''

Quote:
file is unavailable

in general, the older flash players suck ass ... I'd look at smelters flash player on this forum somewhere
I uploaded the file on another link, now it should work: http://www.megaupload.com/?d=3IB23I6Y

As far as I know, native flash radio v2 is a pretty widespread player on the web, and lots of people seems to be satisfied with it, even if now it's getting a little old.

So you think i should change flash player? What about JWPlayer? I heard that one is good too, is it easy to set it in order to make it work with shoutcast?
Yamagong is offline   Reply With Quote
Old 1st March 2011, 13:10   #4
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Hi,

most flashplayers would have problems with the new Shoutcast 2 Server since some of the old info pages provided by DNAS 1.9.x ar no mor availabe at DNAS 2.x

You can try this files:
http://rapidshare.com/files/450404861/webplayer.rar

Simply replacethe original streamtitle.php and radioinfo.php with the one from the package.

If your stream is running on another stream-id then 1 you have to edit the files

streamtitle.php
find line
code:
$ch = curl_init('http://' . $sc_host . '/index.html?sid=1');

and replace sid=1 at end of the line with your sid

radioinfo.php
find line
code:
$ch = curl_init('http://' . $sc_host . '/index.html?sid=1');

and replace sid=1 at end of the line with your sid

Thers also an file called dsl.html. This file is a player config that works on my station using DNAS 2.x
Here you have to edit the following to lines:
code:
<title>Your RadioStation Name here</title>

Replace "Your RadioStation Name here" with your Stationname

code:
so.addVariable("swfstreamurl", "http://your_stream_url_here:8000?sid=1");

Replace "http://your_stream_url_here:8000?sid=1" with your streamurl and the stream-id (sid=1)

Hope it will help.

PS: You need at least an actual php5 version with installed curl

greetings
Martin
MADxHAWK is offline   Reply With Quote
Old 2nd March 2011, 21:45   #5
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Thanks for your help, Martin, but the title line is still blank.
Anyway, will post my rar file again, since download link is broken again: http://rapidshare.com/files/45064311...flashradio.rar

Quote:
PS: You need at least an actual php5 version with installed curl
Why should i need php5 and curl? Shouldn't Shoutcast DNAS be enough?
Is there something I should check in the shoutcast conf files as well, btw?

Last edited by Yamagong; 2nd March 2011 at 22:55.
Yamagong is offline   Reply With Quote
Old 3rd March 2011, 19:00   #6
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Hey there guys, sorry if I'm posting once again, just want to inform you about two things I noticed.

The DNAS I use is 1.9.8 version and the not the latest DNAS2 beta (guess that's why Martin's help didn't solve the problem)

Also, i noticed that when I open my radio page at http://radiorush.no-ip.org:8000, the current song line is blank too!!!

Furthermore, I'm using SAM for broadcasting. Might this be a problem of SAM?

Last edited by Yamagong; 3rd March 2011 at 20:52.
Yamagong is offline   Reply With Quote
Old 3rd March 2011, 22:25   #7
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Hi,


in your encoder check the "Server Detail" tab
The box "Enable title streaming" have to be checked and on the line below enter
Quote:
$combine$
if the line is empty.

Then it should work.

you need php on the server where the native player is running cause flash cant read the song infos from the stream. They use the both php scripts included in the download to extract the song and stationinfo from the shoutcast server statuspage.

cheers Martin
MADxHAWK is offline   Reply With Quote
Old 4th March 2011, 21:31   #8
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Quote:
Originally Posted by MADxHAWK View Post
Hi,


in your encoder check the "Server Detail" tab
The box "Enable title streaming" have to be checked and on the line below enter
if the line is empty.

Then it should work.

you need php on the server where the native player is running cause flash cant read the song infos from the stream. They use the both php scripts included in the download to extract the song and stationinfo from the shoutcast server statuspage.

cheers Martin
I solved that problem: I allowed Sam to get requests from my own IP and now I can see the current song infos in the shoutcast dnas status page.

Btw, this didn't solve my problem with native. Also, I looked for that php file you were talking about in the serverstatus page but didn't find it anywhere. So I googled for shoutcast_class.php and downloaded a file which didn't help much.
Yamagong is offline   Reply With Quote
Old 4th March 2011, 23:08   #9
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Looks like theres some confusion about the player and the php files.

Nativ Flash Radio normaly contains these files:

Quote:
crossdomain.xml
example.html
license.txt
nativeradio2big.swf (depends on playerstyle)
radioinfo.php
streamtitle.php
swfobject.js
To make the player work properly you need at least
crossdomain.xml, radioinfo.php, streamtitle.php, the *.swf file and the *.html file installed on your webserver.

Flash is able to play a shoutcast stream but it cant extract the metadata from the stream like players like winamp, WMP, Realplayer, VLC and all others do. This is why there are 2 php files included in the package.
The swf-file (the player) calls these php files from time to time and the php files return
the Stationname and the interpret - songname informations to the player. Those php files extract the infos from the Shoutcast statuspage.
On Shoutcast 1.9 and previous versions the statuspage was found under http://streamurl.tld:streamport/index.html. But since Shoutcast 2 supports multiple streams, identified by the streamid, the url has changed to http://streamurl.tld:streamport/index.html?sid=streamid So the original php files wont find the statuspage of a shoutcast2 server and thats why native radio dont show any informations if connected to a shoutcast 2.x server.

The 2 php-files i wrote fixing these issue and make native work with a shoutcast2 server.

greetz
MAD
MADxHAWK is offline   Reply With Quote
Old 5th March 2011, 14:37   #10
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Quote:
Originally Posted by MADxHAWK View Post
Looks like theres some confusion about the player and the php files.

Nativ Flash Radio normaly contains these files:



To make the player work properly you need at least
crossdomain.xml, radioinfo.php, streamtitle.php, the *.swf file and the *.html file installed on your webserver.

Flash is able to play a shoutcast stream but it cant extract the metadata from the stream like players like winamp, WMP, Realplayer, VLC and all others do. This is why there are 2 php files included in the package.
The swf-file (the player) calls these php files from time to time and the php files return
the Stationname and the interpret - songname informations to the player. Those php files extract the infos from the Shoutcast statuspage.
On Shoutcast 1.9 and previous versions the statuspage was found under http://streamurl.tld:streamport/index.html. But since Shoutcast 2 supports multiple streams, identified by the streamid, the url has changed to http://streamurl.tld:streamport/index.html?sid=streamid So the original php files wont find the statuspage of a shoutcast2 server and thats why native radio dont show any informations if connected to a shoutcast 2.x server.

The 2 php-files i wrote fixing these issue and make native work with a shoutcast2 server.

greetz
MAD
That's right, but my shotcast dnas version is 1.9.8, not a 2.x version
Yamagong is offline   Reply With Quote
Old 5th March 2011, 23:23   #11
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Hi,

well if i remeber right there was one package of the native radio player where the php files was missing. Not sure about that.
Even if you use a DNAS 1.9.x you need at least the files

crossdomain.xml
radioinfo.php
streamtitle.php
swfobject.js
*.swf (the native player- name depends on package)
and a html file calling the swfobject (see example.html)

on your webspace to work properly.

If you have uploaded all files to same folder and it still doesnt work its possible that php safemode is enebled on your server. This could result in blocking external url calls via fopen, fsockopen and so on. In that case you should ask your webspace hoster to disable php safemode or you have to disable it in php.ini if you hosting your page on your own server.

Last thing i can offer, send me a pm with your streamurl and the downloadlink of your native flash radio player. I will download the player and test it on my System and if i would get it to work i will send you a copy of the working player.

Greetz
MAD
MADxHAWK is offline   Reply With Quote
Old 11th March 2011, 11:54   #12
Yamagong
Junior Member
 
Join Date: Feb 2011
Posts: 7
Problem solved!

Thank you Martin, I owe you a favor.
Yamagong is offline   Reply With Quote
Old 11th March 2011, 14:36   #13
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Good to read it now works and your wellcome
MADxHAWK is offline   Reply With Quote
Old 12th September 2011, 18:46   #14
rintiny2k
Junior Member
 
Join Date: Sep 2011
Posts: 1
hey MADxHAWK could you link the files again please as the link is dead now, cheers
Quote:
Hi,

most flashplayers would have problems with the new Shoutcast 2 Server since some of the old info pages provided by DNAS 1.9.x ar no mor availabe at DNAS 2.x

You can try this files:
http://rapidshare.com/files/450404861/webplayer.rar

Simply replacethe original streamtitle.php and radioinfo.php with the one from the package.
rintiny2k is offline   Reply With Quote
Old 27th December 2011, 19:10   #15
xafe
Junior Member
 
Join Date: Dec 2011
Posts: 2
Native Radio doesn't read playing info

We have a Flash Native Radio in our website. The audio is working well but the info about the songs is missing.
I don't know if MADxHAWk is still active in the forum for sending the details of our connection. We will appreciate any help with this problem

Thanks in advance
xafe is offline   Reply With Quote
Old 28th December 2011, 10:19   #16
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Im still active and did a reupload.

Here is the rar file containing radioinfo.php and streamtitle.php:
http://uploaded.to/file/5o9vgab9

Remeber, these files are to use the native flash radioplayer with a DNAS 2.x server NOT with a DNAS 1.9.x !!!!!!
- MAD
MADxHAWK is offline   Reply With Quote
Old 2nd January 2012, 16:12   #17
xafe
Junior Member
 
Join Date: Dec 2011
Posts: 2
Thank you so much and have a Happy New Year!
xafe is offline   Reply With Quote
Old 22nd March 2012, 11:57   #18
karthi_mca
Junior Member
 
Join Date: Mar 2012
Posts: 2
Need streamtitle and radioinfo file for ver 2.xx

hi hawk can you please upload the files for the server version 2.0 the links are dead pls.
karthi_mca is offline   Reply With Quote
Old 23rd March 2012, 12:28   #19
karthi_mca
Junior Member
 
Join Date: Mar 2012
Posts: 2
server ip instead of listeners ip

Hi,

I placed the native flash radio configured for my station. player is working but no song title.

When i log into shoutcast admin listener status.. i see my server ip instead of listneres ip... Has anyone know what is the issue. Please help me out in this.
karthi_mca is offline   Reply With Quote
Old 7th February 2014, 16:32   #20
Sodah
Junior Member
 
Join Date: Oct 2007
Posts: 31
Hello,

sorry long time ago.... i have developed the new shoutcast flashradio v6. In this time is released the new native flashradio v3 This will now works with shoutcast 2.0 also works this on smartphones/smartpads and works full responsiv.

SODAH | JOERG KRUEGER
WEBDESIGN: Wordpress Webdesign Mainz
ACCESS: ACCESS Datenbank Mainz
SHOUTCAST RADIO: FREE INTERNET WEB RADIO
Sodah 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