Getting a FLV to loop back toward a specific frame using Netstream (as3)


to preface knowledge of as3 quite novice. thread titled reads, i'm trying flv play through it's entireity , loop towards specific frame , keep replaying point endlessly. after lot of digging found video tutorial using as3 worked! here's situation though, cannot find right code insert make video loop frame want. flv stops , doesnt rewind @ end of video. here code far:

 

var video:video = new video(1980, 1020); addchild(video);   var nc:netconnection = new netconnection(); nc.connect(null);   var ns:netstream = new netstream(nc);   var meta:object = new object (); meta.onmetadata = function (meta: object) {           trace(meta.duration); }   ns.client = meta;   video.attachnetstream(ns);   ns.play("all.flv");  

 

 

ultimately, video needs play way through on first load , loop frame 319 , play toward end , loop again frame 319 infinitely. think i'm there, need assistance getting code working appropriately. done before using "gotoandplay()" loop isnt seamless yields 1 second pause before looping back. i'm hoping using netstream function resolved. appreciate help!

use:

 

meta.onplaystatus = function(obj:object):void{

if(obj.code=="netstream.play.complete"){

ns.seek(time closest seek frame);

}

}



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

PProHeadless.exe has stopped working error when opening projects in Adobe Media Encoder CS6

Preconditions Failed. - Joomla! Forum - community, help and support