A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: cannot seek to previous cue point

  1. #1
    Senior Member
    Join Date
    Aug 2004
    Location
    London
    Posts
    211

    cannot seek to previous cue point

    Problem with a seek function on a button, I would like a skipping backwards function with the latest media player component, am not able to see why the below doesent work.

    Code:
    //add a cue point
    for (var a = 0; a<10; a++) {
    	video1.addCuePoint("cue"+a, a);
    	video1.setFLVCuePointEnabled(true, "cue"+a);
    }
    //video1.addCuePoint("cue0", 0);
    //video1.setFLVCuePointEnabled(true, "cue0");
    backBttn.onPress = function() {
    	trace("time is "+video1.playheadTime);
    //video1.seekSeconds(time:Number)
    	video1.seekToPrevNavCuePoint(video1.playheadTime-1);
    	//video1.seekToNavCuePoint("cue0");
    };
    interestingly though the traced playheadTime is skipping back ! but it doesnt actually go back in the video..
    Last edited by mojito; 06-27-2007 at 05:39 AM.
    ----------------------------
    A travel blog

    Landed At
    ----------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center