0 Replies Latest reply on Mar 28, 2008 2:47 PM by txdue26

    seekSeconds problem

    txdue26
      I have a streaming video with custom controls and a dynamic text box with a time remaining display.
      Problem is I am trying to add a seekseconds to skip the first 10 seconds of the video and when I do its like the whole script stops at that point??? See code below.

      BIG THNXS in advance!!!

      This works fine:

      {
      thevideo.playPauseButton= player;
      thevideo.stopButton = stopper;
      thevideo.seekBar = seeker;
      thevideo.muteButton = muter;

      onEnterFrame=function(){;
      timecode = Math.round(thevideo.totalTime);
      tmins = Math.floor(timecode/60); // find number of minutes;
      tsecs = Math.floor(timecode%60); // find remaining seconds;
      tmins = (tmins<10) ? "0"+tmins : tmins;
      tsecs = (tsecs<10) ? "0"+tsecs : tsecs;
      vidTime = tmins+":"+tsecs;

      htimecode = Math.round(thevideo.playheadTime);
      hmins = Math.floor(htimecode/60); // find number of minutes;
      hsecs = Math.floor(htimecode%60); // find remaining seconds;
      hmins = (hmins<10) ? "0"+hmins : hmins;
      hsecs = (hsecs<10) ? "0"+hsecs : hsecs;
      headTime=hmins+":"+hsecs;
      displayTime=headTime+"/"+vidTime;
      };
      }

      But when I add "thevideo.seekSeconds(10);" everything after that does not run??

      {
      thevideo.playPauseButton= player;
      thevideo.stopButton = stopper;
      thevideo.seekBar = seeker;
      thevideo.muteButton = muter;

      thevideo.seekSeconds(10);

      onEnterFrame=function(){;
      timecode = Math.round(thevideo.totalTime);
      tmins = Math.floor(timecode/60); // find number of minutes;
      tsecs = Math.floor(timecode%60); // find remaining seconds;
      tmins = (tmins<10) ? "0"+tmins : tmins;
      tsecs = (tsecs<10) ? "0"+tsecs : tsecs;
      vidTime = tmins+":"+tsecs;

      htimecode = Math.round(thevideo.playheadTime);
      hmins = Math.floor(htimecode/60); // find number of minutes;
      hsecs = Math.floor(htimecode%60); // find remaining seconds;
      hmins = (hmins<10) ? "0"+hmins : hmins;
      hsecs = (hsecs<10) ? "0"+hsecs : hsecs;
      headTime=hmins+":"+hsecs;
      displayTime=headTime+"/"+vidTime;
      };
      }