Right I’m back on making a video player with selectable dubbing for different languages.
On 56k simulator. (3min video…audiolessFLV =5MB, mp3 = 707KB)using net stream
Preload - ---------------------------------- 19 seconds
aprox “6 Minutes worth of subtitles” (2xmls) + 50% audio – 1min27secs
NB… this is NOT including FLV download as the DL sim, doesn’t account for that.
For saftey lets say 10 second audio buffer delay… so what double/triple accounting for flv?
…
Another issue is sync. According to ns.time and s.position, the audio is half a second early… when in sync.:h:
1-2 moves of the scrubber is ok, but if you start messing around with the scrubber it goes out of sync.
Is the sync issue my code problem or an inhertant issue?
Thanks
_root.controlbar.loader.scrub.onPress = function() {
vFrame.onEnterFrame = _root.scrubit;
this.startDrag(false, 0, this._y, 298.3, this._y);
};
_root.controlbar.loader.scrub.onRelease = _root.controlbar.loader.scrub.onReleaseOutside=function () {
vFrame.onEnterFrame = _root.videoStatus;
//scrubyVar = Math.floor((_root.controlbar.loader.scrub._x/298.3)*_root.vidDuration);
//s.start(scrubyVar);
this.stopDrag();
};
function scrubit() {
scrubyVar = Math.floor((_root.controlbar.loader.scrub._x/298.3)*_root.vidDuration);
ns.seek(scrubyVar);
//_root.ns2.seek(scrubyVar);
//s.
//scrubyVar2 = Math.floor((_root.controlbar.loader.scrub._x/298.3)*s.duration);
pos = scrubyVar;
dragGo = 1;
s.start(scrubyVar);
//s.position = scrubyVar
dragGo = 0;
}