onCaption
Description
 
This event occurs for each caption at the timestamp of the caption.
 
Parameters
 
captions (Array)
An array of strings, one for each language track.
 
speaker (Number)
Speaker index of the caption. A value of -1 means speaker is not defined.
 
Example
nets.onCaption = function(captions,speaker){

	trace('onCaption event at '+nets.time);
	
	trace(' Speaker index: '+speaker);

	for (n=0;n<captions.length;n++){
		str=captions[n];
		trace(' Caption for track '+n+' > "'+str+'"');
	}
	
}
See also
 
onCaptionInfo