Skip to main content
Aug 11, 2010 4:18 PM UTC
Question

ID3 Tag trouble.

Let me apologize, first for being a newbie and second if this has been answered (I searched but didn't find anything, this is probably something really simple that I'm just overlooking).

I'm trying to get the id3 information from an mp3 being streamed from FMS.  I followed the samples I found online and am using the following client-code, which 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 a note the above code works fine to play the actual file (substituting mp3: for id3:, of course) it just doesn't seem to trigger the onID3 method (I've tried onId3 which is what the samples use).  I am also able to view the id3 information from windows explorer and other external readers.

The platform I'm ultimately targeting is Flash Lite 3.1 AS2, but I've tried various configurations and haven't had any success.

any help would be appreciated.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    Participating Frequently
    Aug 12, 2010 6:07 AM UTC

    Can you 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 this and it worked for me.

    I think Flash lite won't give you traces so its better you put a small text box to print out messages , i mean replace traces by using text box

    Translate