Hi,
You can try the following code from Captionate's help file:
ns.onMetaData = function(metadata){
var level;
function levelStr(level){
s='';
for (n=0;n<level;n++){s=s+' '};
return(s);
}
function traceThis(x){
level++;
for (y in x){
switch (typeof(x[y])) {
case 'object':
trace(levelStr(level)+y+' : ');
traceThis(x[y]);
break;
default:
trace(levelStr(level)+y+' = '+x[y]);
break;
}
}
level--;
}
level=0;
traceThis(metadata);
}
Best regards,
Burak
Burak KALAYCI, Manitu Group
http://www.buraks.com
http://www.manitugroup.com
----- Original Message -----
From: "Mendelsohn, Michael" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, November 10, 2006 12:14 AM
Subject: [Flashcoders] Embedded Cue points metaData
> Hi list...
>
> How can you access embedded cue points WITHOUT using the FLV playback
> component? I'm just using the plain video object on the stage.
>
> When the FLV is loaded, I am trying to get cue point info like so:
>
> ns.onMetaData = function(infoObject:Object):Void {
> for (var i in infoObject) {
> trace(i + " " + infoObject[i]);
> }
> };
>
> But, I get something like the following, which returns wrong data for
> cue points:
>
> canSeekToEnd true
> cuePoints
> undefined,undefined,undefined,undefined,undefined,undefined,undefined,un
> defined
> audiocodecid 2
> audiodelay 0.038
> audiodatarate 128
> videocodecid 4
> framerate 29.9699859619141
> videodatarate 400
> height 240
> width 320
> duration 89.452
>
>
>
> Any insight is appreciated. Thanks,
> - Michael M.
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com