[osflash] How to refesh a video while seeking

henrik weber hw at freemind-design.de
Wed Oct 17 03:33:00 PDT 2007


hi gilles!

i think you should give us some more details ;)

are you using the NetStream-Class in as2???

if so, you could use the seek-method from the onPress-event
of your slider and everything should be fine...

let me give you a small example:

yourConnection=new NetConnection();
yourConnection.connect(null);
videoStream = new NetStream(yourConnection);
video.attachVideo(videoStream);    
videoStream.setBufferTime(10);
videoStream.play("foo.flv");

this.scrubVideo=function(){
currentPos=//calculate position here!
videoStream.seek(currentPos);
}

//use your slider here:
slider_mc.onPress=Proxy.create(this, scrubVideo);

hth!

henrik

--
__digital spices__
Henrik Weber [MediaDesign&FlashDevelopment]
home: www.digitalspices.com

gilles wrote:
> Hi ,
> i'm working on a video player and i'm using an instance of Video; 
> Everytinhg is cool except that when i seek forward my video doesn't 
> refresh whil seeking it just refresh when i stop seeking.
>
> Any advice is welcome.
>
> BERTRAND Gilles
> DIRECTOR
> 248, rue des canadiens 
> 7022 HYON
> BELGIUM
> PHONE +32 499 529229
> MOBILE +32 499529229
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20071017/4d7e1e9f/attachment.html 


More information about the osflash mailing list