11三/090
(un)documented NetrStream.onFI callback
Flash Media Encoder contains a special built-in handler, onFI, that subscribing clients can use in their ActionScript code to access timecode information. The following client-side ActionScript code shows how to get timecode information using the onFI handler. The object ns is the NetStream object. You can get timecode information by accessing the tc member of the info object that is passed as an argument to onFI():
ns.onFI = function(infoObj){ var timecode:String; for( i in infoObj) { if(i == "tc") timecode = infoObj.tc; //string formatted HH:MM:SS:FF } } |
Thanks, Skyler for finding this useful bit of Flash Arcana.
标签:ActionScript3, adobe, Encoder, flash, flash media, Media, NetrStream