![]() |
#1 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
Shoutcast not working with flash player
but winamp, media player are working fine.
I am using aacp as the encoder. Do I need to get a license key to use mp3 as encoder so I can use it in flash player? I hope shoutcast tech can confirm and help me with this. Appreciate it. |
![]() |
![]() |
![]() |
#2 |
Forum King
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
|
what do you mean by "flash player" ... by itself, flash player wont play shoutcast ... a WELL WRIITEN flash player application on the other hand can
"If you don't like DNAS, write your own damn system" So I did |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
Basically, what I want to accomplish is when a user visit my site, radio will automatically play without asking the user to download or open a file to listen to it.
Almost all flash player I tried do not work. |
![]() |
![]() |
![]() |
#4 | |
Forum King
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
|
Quote:
![]() search this forum for "thunder snow" "If you don't like DNAS, write your own damn system" So I did |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
jaromanda,
Thank you for the reply as always. I tried thunder snow but not working also but maybe it is because of my playlist.xml config? Can you help? Is this correct: <playlist> <!-- --> <autoPlay>true</autoPlay> <projector> <!-- --> <view>BaseAudio</view> <uri>skins/BaseSkin.swf</uri> </projector> <item><!-- requires socket policy server--> <provider>Shoutcast</provider> <description>Shoutcast over socket stream</description> <view>BaseVideo</view> <connection>socket</connection> <host>99.198.118.250</host> <port>8010</port> <uri>/;stream.nsv</uri> </item> </playlist> Of course, the ip and port have been replaced but the problem is I do not understand what is socket policy and stream.nsv ? I only want to stream audio from my shoutcast server ( sc_trans ). Sorry as I am new with shoutcast. Hope you can help. |
![]() |
![]() |
![]() |
#6 |
Join Date: Sep 2003
Posts: 27,873
|
you cannot use sc_trans to listen from. you need to setting up the player to pull from a proper DNAS server e.g. sc_serv.
-daz |
![]() |
![]() |
![]() |
#7 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
I am running sc_serv then sc_trans to pull the music then player to listen.
It is working fine with media player or winamp but not when using flash player. |
![]() |
![]() |
![]() |
#8 |
Join Date: Sep 2003
Posts: 27,873
|
you're using a v1 DNAS which doesn't provide a flash policy socket server (as you're prior post indicates you're trying to create a socket only connection in flash). that is most likely the cause of the issue and i had thought that the thundersnow config examples showed how to do a non-socket connection type - but that's really something for smelter to answer / clarify.
-daz |
![]() |
![]() |
![]() |
#9 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
Thanks for the reply daz and for staying with me :-)
I am using SHOUTcast DNAS 2.0 but to be honest, I am not familiar with thunder snow setting so I used that playlist config inside thunder snow. I hope smelter can give me an example of config to be used to connect to my shoutcast server. |
![]() |
![]() |
![]() |
#10 |
Join Date: Sep 2003
Posts: 27,873
|
k, i only quickly glanced at the DNAS address in your prior post so didn't notice it's not likely to be yours.
i know it can work as i've briefly tried it out a year or so back with a v2 DNAS but i don't have anything i tried out from then around anymore (lost in a hdd failure) so i'd be looking at it fresh as well again. though really had thought there was an example showing how to do it in a non-socket manner (though things have probably changed with the configs since i last looked). -daz |
![]() |
![]() |
![]() |
#11 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
I see.
This is the available config in thunder snow playlist: <playlist> <!-- --> <autoPlay>true</autoPlay> <projector> <!-- --> <view>BaseAudio</view> <uri>skins/BaseSkin.swf</uri> </projector> <item><!-- requires socket policy server--> <provider>IcecastSocket</provider> <description>icecast over socket stream, supports aacp audio and x-flv</description> <view>BaseAudio</view> <host>glb-stream15.streaming.init7.net</host> <port>80</port> <uri>/1/rsc_de/aacp_64</uri> </item> <item><!-- requires crossdomian file--> <provider>Icecast</provider> <description>Icecast over http stream</description> <view>BaseAudio</view> <!-- specify content, AACP or MP3 --> <content>AACP</content> <host>http://glb-stream15.streaming.init7.net:80</host> <uri>/1/rsc_de/aacp_64</uri> </item> <item><!-- requires socket policy server--> <provider>Shoutcast</provider> <description>Shoutcast over socket stream</description> <view>BaseVideo</view> <connection>socket</connection> <host>99.198.118.250</host> <port>8010</port> <uri>/;stream.nsv</uri> </item> <item><!-- requires crossdomian file--> <provider>Shoutcast</provider> <description>Shoutcast over tcp stream</description> <view>BaseVideo</view> <connection>tcp</connection> <host>http://99.198.118.250:8010/;stream.nsv</host> <uri>http://99.198.118.250:8010/;stream.nsv</uri> </item> </playlist> Maybe it will refresh your mind again :-) |
![]() |
![]() |
![]() |
#12 |
Join Date: Sep 2003
Posts: 27,873
|
i'd assume the tcp option (last one) as unless you setup a flash policy server or are using the next v2 DNAS release, the socket-stream option generally won't work.
-daz |
![]() |
![]() |
![]() |
#13 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
The last one still do not work.
I hope someone will chime in and help me :-( |
![]() |
![]() |
![]() |
#14 |
Forum King
|
I've never seen any of the latest flash players work without either using a socket policy server or serving the flash SWF file through the same port the DNAS is streaming on. This is because of the (pseudo-)recent changes to flash security. You'll probably end up needing to setup a flash policy server on your server anyways so I suggest you start there. With the current version of the Transcoder you can setup a policy server but it has to be ran as the root linux account or the linux OS won't let it bind to port 843. If you're running a Windows server that won't matter (as long as you configure the firewall to allow it.) If you're self-hosting from behind a router you'll probably need to forward port 843 to the same IP address as the DNAS/Transcoder. IF you're on Windows (which I doubt) you can use my Socket Policy Server (if you can find it) for instant gratification.
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Jun 2012
Posts: 8
|
I am trying to use this: http://code.google.com/p/project-thunder-snow/
But still do not work. I guess I will just contact the developer and pay him :-) |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|