[osflash] How to refesh a video while seeking

gilles gilles at b-u.be
Wed Oct 17 06:01:17 PDT 2007


Actually i'm working on a AS3 project everytinhg is great until seeking.

When i seek for fastForward the display and the sound just jumps to  
the last value and don't change while the timer. The seeking value  
does but not the real display and sound ??

gilles

Le 17-oct.-07 à 12:33, henrik weber a écrit :

> 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
>>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org

BERTRAND Gilles
DIRECTOR
248, rue des canadiens
7022 HYON
BELGIUM
PHONE +32 499 529229
MOBILE +32 499529229




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/osflash_osflash.org/attachments/20071017/5e482668/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pastedGraphic.tiff
Type: image/tiff
Size: 12020 bytes
Desc: not available
Url : http://osflash.org/pipermail/osflash_osflash.org/attachments/20071017/5e482668/attachment-0001.tiff 


More information about the osflash mailing list