duration

gif + mp3

SUPER encodes a movie to a gif .

Open the gif and cut the part you need .

You  will see  his duration :

216x13 = 27 seconds ........Your sound must be 27 seconds too 

Cut it to have only 27 seconds

Now use the Peter's script :

DEF S Script {
eventIn  SFTime media_loaded
eventOut SFTime  launch_media
eventOut SFBool set_loop
url  "javascript:
      function media_loaded(_data,t){
      launch_media=t;
      set_loop=true;
}"
}     
ROUTE mp3.duration_changed TO S.media_loaded
ROUTE S.launch_media TO   mp3.startTime
 
ROUTE gif.duration_changed TO S.media_loaded
ROUTE S.launch_media TO   gif.startTime
ROUTE to.touchTime TO gif.startTime
ROUTE to.touchTime TO mp3.startTime

....

Next step : we will set up a preloader  !

_________________________________________________________________________

Vrml...........................


figuet.wrl

______________________________________________________________________

Sommaire................

Intro

______________________________________________________________________



duration








_________________________________________________________________________

Vrml...........................

figuet.wrl

______________________________________________________________________

Contents....................

Intro

_______________________________________________________________________