onMetaData
Description
 
This event occurs at time zero and provides general FLV information.
 
Note: Other software may also add this event. Captionate will add the event if it doesn't exist. If it is present, Captionate will preserve it and update the values it knows about and calculates.
 
Parameters
 
metadata(Object)
The metadata object has the following properties: Example
nets.onMetaData = function(metadata){

	trace('onMetaData event at '+nets.time);

	trace(' duration: '+metadata.duration+newline+
	      ' lasttimestamp: '+metadata.lasttimestamp+newline+
	      ' lastkeyframetimestamp: '+metadata.lastkeyframetimestamp+newline+
	      ' width: '+metadata.width+newline+
	      ' height: '+metadata.height+newline+
	      ' videodatarate: '+metadata.videodatarate+newline+
	      ' audiodatarate: '+metadata.audiodatarate+newline+
	      ' framerate: '+metadata.framerate+newline+
	      ' creationdate: '+metadata.creationdate+newline+
	      ' filesize: '+metadata.filesize+newline+
	      ' videosize: '+metadata.videosize+newline+
	      ' audiosize: '+metadata.audiosize+newline+
	      ' datasize: '+metadata.datasize+newline+
	      ' metadatacreator: '+metadata.metadatacreator+newline+
	      ' metadatadate: '+metadata.metadatadate
              );

	trace(' audiocodecid: '+metadata.audiocodecid+newline+
	      ' videocodecid: '+metadata.videocodecid+newline+
	      ' audiodelay: '+metadata.audiodelay+newline+
	      ' canseektoend: '+metadata.canSeekToEnd);
	trace(' cuePoints:');
	for (n=0; n<metadata.cuePoints.length; n++) {
		cp = metadata.cuePoints[n];
		trace('  '+cp.time+' "'+cp.name+'" ('+cp.type+')');
		if (cp.parameters != undefined) {
			trace('   parameters: ');
			for (paramName in cp.parameters) {
				trace('    "'+paramName+'" = "'+cp.parameters[paramName]+'"');
			}
		}
	}
	
	trace(' custommetadata:');
	for (paramName in metadata.custommetadata) {
		trace('  "'+paramName+'" = "'+metadata.custommetadata[paramName]+'"');
	}
	trace(' keyframes:');
	fp=metadata.keyframes.filepositions;
	ti=metadata.keyframes.times;
	for (n=0; n<fp.length; n++){
		trace('  fileposition: '+fp[n]+' time: '+ti[n]);
	}	
}
Example 2
nets.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);

}
See also
 
onLastSecond, onCuePoint