ID3 Tag trouble.
let me apologize, first being newbie , second if has been answered (i searched didn't find anything, simple i'm overlooking).
i'm trying id3 information mp3 being streamed fms. followed samples found online , using following client-code, doesn't work:
var nc:netconnection = new netconnection();
var ns1:netstream;
nc.connect("rtmp://someserver/someapp");
ns1 = new netstream(nc);
ns1.play("id3:song");
ns1.onid3 = function (info)
{
trace ("triggered");
}
as note above code works fine play actual file (substituting mp3: id3:, of course) doesn't seem trigger onid3 method (i've tried onid3 samples use). able view id3 information windows explorer , other external readers.
the platform i'm targeting flash lite 3.1 as2, i've tried various configurations , haven't had success.
any appreciated.
can try below code:
var nc:netconnection = new netconnection();
var ns1:netstream;
nc.onstatus = function(info){
trace(info.code);
if(info.code == "netconnection.connect.success"){
ns1 = new netstream(nc);
ns1.play("id3:song");
ns1.onid3 = function (info)
{
trace ("triggered");
}
}
}
nc.connect("rtmp://<servername>/<appname>);
i tried , worked me.
i think flash lite won't give traces better put small text box print out messages , mean replace traces using text box
More discussions in Adobe Media Server
adobe
Comments
Post a Comment