zzyycc / bulk-loader

Automatically exported from code.google.com/p/bulk-loader
0 stars 0 forks source link

resumeAll in VideoItems is not working as expected #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
this is what happening

first if yo create a loader ......

var loader : BulkLoader = new BulkLoader("main-site");
loader.add("one.flv", {id:"one",type:"video", pausedAtStart:true});
loader.add("two.flv", {id:"two",type:"video", pausedAtStart:true});
loader.addEventListener(BulkLoader.COMPLETE, allLoaded);
loader.start();

(a test this locally so, BulkLoader.COMPLETE event is fired right away)
if you do a loader.pauseAll(),
in the VideoItem.stop method is a stream.close();
and then if you do a loader.resumeAll(); 
the VideoItem.load method is never reached because of this line
in the BulkLoader._loadNext method

trace("_isFinished: ",_isFinished)
if (_isFinished) {
    return false;
}
//outputs true

so, i see that you pause the NetStream even if is loaded and then nevers
goes back

cheers

Raul

Original issue reported on code.google.com by rura...@gmail.com on 2 Dec 2008 at 6:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
hehe well i see that you change that in the newest version
cheers!

Original comment by rura...@gmail.com on 2 Dec 2008 at 7:42

GoogleCodeExporter commented 8 years ago

Original comment by debert on 18 Jan 2009 at 4:27