PDA

View Full Version : flv cuepoints and seek confusion


aoi87
07-20-2006, 07:06 AM
:confused: Hi there guys,

I have an encoded flv file and am trying to use seekToNavCuePoint to send the playback head to a specified actionscript cuepoint (which is in turn triggering a movieclip on the main timeline to advance to a selected frame.)

I have the movieclip advancing at each cuepoint as it passes, but on the aforementioned seek command I am only tracing back the error "invalid seek : 1003" which doesn't seem to be in the mm livedocs or documented online anywhere. could this be due to the fact that they are not 'navigation' cuepoints as opposed to 'AS'? I was under the impression is a cuepoint can fire off a function then it was valid for seek commands. any advice would be greatly appreciated.



// Create cuePoint object.
var cuePt:Object = new Object();
cuePt.time = 5;
cuePt.name = "slide3";
cuePt.type =
// Add AS cue point.
my_flvPb.addASCuePoint(cuePt);

// Add another AS cue point.

my_flvPb.addASCuePoint(10, "slide2", "navigation");
//my_flvPb.addASCuePoint(15, "slide3");

// Display cue point information in text field.
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject) {
my_ta.text += "Elapsed time in seconds: " + my_flvPb.playheadTime + " " + eventObject.info.name + "\n";
_root.slides.gotoAndPlay(eventObject.info.name);


//_root.my_flvPB.seekToNavCuePoint("slide3");
//_root.slides.gotoAndPlay(eventObject.info.name);

};

my_flvPb.addEventListener("cuePoint",listenerObject);

aoi87
07-21-2006, 12:10 AM
can anyone shed any light on this?? have a deadline approaching and would like to get some sort of a grip on this...or at least a way I can event listen the current point in the movie and change the slide accordingly. (this way I can just use the default seek bar for navigating the flv)

any replies would be appreciated!

acolyte
07-21-2006, 12:42 AM
Hi aoi87

are you streaming the video ?? if not this might be interesting for you :

http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

you normaly cannot seek without streaming server

greets Ac

aoi87
07-21-2006, 02:11 AM
Hi there, so far I am using progressive download locally, I am not sure if this will be used for streaming yet, most probably a cd...

I have now re-encoded my FLV with navigation cue points and it is still giving me the 'invalid seek' error, I thought this would work because I have tried a short example flv with nav cuepoints from a tute and my seek button is working fine with that. what gives? is there something I'm missing in the encoding? the eventlistener is tracing the cuepoint names and I can't see any problems here.....v.confused.


here's my very simple button code:

on(release){

_root.my_flvPb.seekToNavCuePoint("slide1");
}

aoi87
07-21-2006, 04:23 AM
ok in true cryptic fashion I have gotten rid of my invalid seek problem by deleting the flvPlayback component and dragging another one to the stage, with exactly the same code and parameters applied to it. I guess it's a bug in Flash?

so now I'm just wondering how I would code a listener to know if the seek bar is moved between cuepoints to update my slides/text?

acolyte
07-21-2006, 09:42 AM
Hi aoi87 ,

as i said you cannot seek without a streaming server , or check the methode providet @ flashcomguru using php

( did i knew about you are testing it locally for Cd-Rom use please write you questions more detailed so that other members know what you >realy< want to do) for Video for example there is a diffrence between local and online do you understand?

thnx

to your second question this has been answered here on the Board a million times i think use the forums search for you Listener problem