猫粮的菠萝阁 2010是自动化年

11三/090

(un)documented NetrStream.onFI callback

发布在 CaTFooD

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():

?View Code ACTIONSCRIPT3
ns.onFI = function(infoObj){
    var timecode:String;
    for( i in infoObj)
    {
        if(i == "tc")
        timecode = infoObj.tc; //string formatted HH:MM:SS:FF
    }
}

Also see http://74.125.95.104/search?q=cache:rhViejkzZk8J:www.adobe.com/support/documentation/en/flashmediaencoder/2/FME_Timecode_Clientside_Addedum.pdf+%22onFI%22+actionscript&hl=en&ct=clnk&cd=2&gl=us&client=firefox-a

Thanks, Skyler for finding this useful bit of Arcana.

标签:, , , , , ,