Old 27th June 2012, 05:51   #1
mandiadi
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.
mandiadi is offline   Reply With Quote
Old 27th June 2012, 06:28   #2
jaromanda
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
jaromanda is offline   Reply With Quote
Old 27th June 2012, 06:44   #3
mandiadi
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.
mandiadi is offline   Reply With Quote
Old 27th June 2012, 09:39   #4
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,289
Quote:
Originally Posted by mandiadi View Post
Basically, what I want to accomplish is when a user visit my site, radio will automatically play without asking the user
the page better be interesting ... or they'll click away
Quote:
Originally Posted by mandiadi View Post
Almost all flash player I tried do not work.
search this forum for "thunder snow"

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 27th June 2012, 09:55   #5
mandiadi
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.
mandiadi is offline   Reply With Quote
Old 27th June 2012, 11:06   #6
DrO
 
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
DrO is offline   Reply With Quote
Old 27th June 2012, 15:48   #7
mandiadi
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.
mandiadi is offline   Reply With Quote
Old 27th June 2012, 15:55   #8
DrO
 
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
DrO is offline   Reply With Quote
Old 27th June 2012, 15:58   #9
mandiadi
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.
mandiadi is offline   Reply With Quote
Old 27th June 2012, 16:08   #10
DrO
 
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
DrO is offline   Reply With Quote
Old 27th June 2012, 16:22   #11
mandiadi
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 :-)
mandiadi is offline   Reply With Quote
Old 27th June 2012, 16:28   #12
DrO
 
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
DrO is offline   Reply With Quote
Old 28th June 2012, 00:01   #13
mandiadi
Junior Member
 
Join Date: Jun 2012
Posts: 8
The last one still do not work.

I hope someone will chime in and help me :-(
mandiadi is offline   Reply With Quote
Old 28th June 2012, 00:12   #14
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,028
Send a message via Skype™ to thinktink
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.
thinktink is offline   Reply With Quote
Old 12th July 2012, 03:52   #15
mandiadi
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 :-)
mandiadi 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