Go Back   Winamp Forums > SHOUTcast > SHOUTcast Discussions

Reply
Thread Tools Search this Thread Display Modes
Old 4th August 2012, 17:55   #121
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
Now is your chance. Im working on brass monkey bitstreams.


http://playbrassmonkey.com/
Smelter is offline   Reply With Quote
Old 5th August 2012, 07:12   #122
whooshstream
Junior Member
 
Join Date: May 2009
Posts: 9
aac shoutcast player

Quote:
Originally Posted by Smelter View Post
Thundersnow still rules all shoutcast player wannabees. :lol
Hi Smelter,

Nice to meet you here, just curious if you are from thebitstream.com so obviously your are the guy behind the thundersnow project by which I can call it as "ingenious project" you rule it man!.

Sorry maybe now is my chance to ask this question as I cannot find it anywhere to ask , latest version of Adobe Flash player is a bit buggy and SoundMixer.computeSpectrum does not work even the policy file has been served correctly so I plan to get the spectrum directly from the raw data of ByteArray which is came from your Transcoder Class of thebitstream, so my question is; are those data from ByteArray is similar to computespectrum? or still unprocessed AAC raw?

do you have any suggestion on how to extract audio peak values or VU meter from those raw data?, if you can make me a working example I'll be happy to pay for your effort if you require.

best regards
whooshstream is offline   Reply With Quote
Old 9th August 2012, 11:23   #123
neralex
Junior Member
 
Join Date: Mar 2011
Posts: 31
I hope i being here right with my question. I have question to the demo player inside the thundersnow package. How its possible to create a new skin? The player works fine but the default skin is very small and i need the player in higher resolution. In the package is not a source to the skin.
neralex is offline   Reply With Quote
Old 10th August 2012, 17:02   #124
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
ill see if I can dig it up
Smelter is offline   Reply With Quote
Old 30th August 2012, 18:38   #125
neralex
Junior Member
 
Join Date: Mar 2011
Posts: 31
Smelter, give it news? I need only the source to your player for resizing the video interface. If you don't want give it free, then rebuilded for me but without any message is it not realy cool.
neralex is offline   Reply With Quote
Old 7th September 2012, 06:25   #126
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
Im just too busy
Attached Files
File Type: zip ViewDeveloper.zip (411.7 KB, 108 views)
Smelter is offline   Reply With Quote
Old 3rd October 2012, 17:27   #127
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,088
F.A.Q. : " How the hell do I get the title data? I set up a policy file server but now what?"


code:

package
{
import com.thebitstream.flv.CodecFactory;
import com.thebitstream.flv.codec.AAC;
import com.thebitstream.flv.codec.AACP;
import com.thebitstream.flv.codec.MP3;
import com.thebitstream.flv.codec.MetaData;
import com.thebitstream.nsv.Shoutcast;
import com.thebitstream.provider.StreamEvent;

import flash.display.Sprite;
import flash.events.ContextMenuEvent;
import flash.events.Event;
import flash.external.ExternalInterface;
import flash.net.URLRequest;
import flash.text.TextField;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;


CodecFactory.ImportCodec(MetaData);
CodecFactory.ImportCodec(AAC);
CodecFactory.ImportCodec(AACP);
CodecFactory.ImportCodec(MP3);

[SWF(width="320", height="125")]

public class RadioCafe extends Sprite
{
private var shoutcast:Shoutcast;
private var _title:String = "";
private var titleText:TextField = new TextField();

public function RadioCafe()
{
super();
addChild(titleText);
titleText.width=320;

titleText.text="Radio Cafe";
boot();
}

private function onCLickMenu(cme:ContextMenuEvent):void
{
flash.net.navigateToURL(new URLRequest("http://code.google.com/p/comserver/"),"_info");
}
private function boot():void
{

shoutcast=new Shoutcast();
shoutcast.addEventListener(StreamEvent.STATUS_CHANGED, onStreamEvent);
shoutcast.addEventListener(StreamEvent.CUEPOINT, onStreamEvent);
shoutcast.addEventListener(StreamEvent.METADATA_CHANGED, onStreamEvent);
shoutcast.addEventListener(StreamEvent.CONTENT_CHANGED, onStreamEvent);
shoutcast.volume= 1;
shoutcast.initStream(
XML("<item> "+
"<policy>xmlsocket://yourdomainOrIp</policy> "+
"<host>yourdomainOrIp</host>"+
"<connection>socket</connection>"+//socket allows title data
"<port>8064</port>"+
"<uri>/;stream.nsv</uri>"+
"</item>"));


contextMenu=new ContextMenu();
contextMenu.hideBuiltInItems();
var context:ContextMenuItem=new ContextMenuItem("AACplus by Thunder Snow");
context.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,onCLickMenu);
contextMenu.customItems=[context];
}


protected function onStreamEvent(event:StreamEvent):void
{
trace(event.type);
switch(event.type)
{
case StreamEvent.METADATA_CHANGED:
onMetaData(event.data);
break;

}

}

public function onMetaData(obj:Object):void
{
for(var prop:String in obj)
{
//trace(prop,":",obj[prop]);
if(prop=="StreamTitle" && obj[prop] && obj[prop].length)
{


var s2:String =obj[prop].toString();
var out:String="";


for(var i:int=0; i<s2.length; i++)
{
if(s2.charAt(i)=="%")
{

var val:uint=new uint( String( "0x"+s2.charAt(++i)+ s2.charAt(++i)));

out = out+ String.fromCharCode(val);

}
else
{

out = out+ s2.charAt(i);
}
}

var t:String=decode(obj[prop].toString());
this._title=t;
trace("title : "+ _title);
titleText.text=_title;



}
}
}

public function decode(s2:String):String
{

var out:String="";
for(var i:int=0; i<s2.length; i++){
if(s2.charAt(i)=="%"){

var val:uint=new uint( String( "0x"+s2.charAt(++i)+ s2.charAt(++i)));

out = out+ String.fromCharCode(val);

}else{

out = out+ s2.charAt(i);
}
}
return out;

}

public function get title():String
{
return _title;
}

}
}



Smelter is offline   Reply With Quote
Reply
Go Back   Winamp 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