actionscript 3 - how can i start a video from a specific second in as3 -


I have a problem about verb script 3. I have a flv video and its total time is 6 seconds i want to start with it 2. secondsseconds (with) If I write bigger than 6 values ​​for search, then it will only run video from head to end. If I write less than 6, then this will not work. Can I write in seekSeconds () for starting video from 2 seconds?

 use the  function () {var obj: object = new object (); Var j; For (j.myprams in this) {if (j == "url") {src = this.myParams [j]; } And if (j == "bus") {startTime = int (this.myParams [j]); } And {stopTime = int (this.myParams [j]); } Txt.text + = j + "-" + this.myParams [j]; } //fk.source = src; Txt.text = string (starttime); } Fk.addEventListener (video event. Ready, light); Function Bit (Event Object: Video Event): Zero {//fk.play (); Detection (fk.totalTime); Fk.seek (2); Detection (fk.playheadTime); //trace(fk.playheadTime); }  

According to the document, Event.READY is sent:

The event has been posted when an FLV file is ready to load and display. This starts for the first time when you enter the responsive status after loading a new FLV file with playlist () or load () method. It starts only once for each FLV file that is full.

It is possible that the video has been prepared but not enough buffer has been searched for it. You can change the value of more than 2 though I am not sure that the event will be guaranteed. READY will be removed if you need it. Also note the demanding progressive download property:

For a progressive download, you can search only for one keyframe; Therefore, a searcher takes you to the time of the first keyframe after the specified time.

Note: has a buffer time on both a video player and netstream, so that you may have to adjust one or the other or both.


Comments