我有一個FLV VID,並設置提示點動態閃存A3 - 停在一個提示點
vid.addASCuePoint(1, "cuePoint1");
如何過它並不總是在同一個地方停下來。我怎樣才能更準確?我認爲這是由於緩衝和其他一些因素?
import fl.video.*;
//etc etc
vid.addEventListener(fl.video.VideoEvent.READY, flvPlayback_ready);
vid.addEventListener(MetadataEvent.CUE_POINT, flvPlayback_cuePoint);
function flvPlayback_ready(evt:fl.video.VideoEvent):void {
vid.addASCuePoint(1, "cuePoint1");
vid.play();
}
function flvPlayback_cuePoint(evt:MetadataEvent):void {
vid.pause();
trace("CUE POINT!!!");
trace("\t", "name:", evt.info.name); // name: cuePoint1
trace("\t", "time:", evt.info.time); // time: 1
trace("\t", "type:", evt.info.type); // type: actionscript
}
最後我只是吐了視頻。 – LeBlaireau 2012-04-02 09:34:49