-
1. Re: stop/start controls in flv sections
robdillon Apr 27, 2011 7:23 AM (in response to slenderiser)1 person found this helpfulHave a look at this Developer article: http://www.adobe.com/devnet/flash/articles/flvplayback_programming.html , it covers pretty much every aspect of building custom controls. What you want to do is in the section "Using cue points and seek commands" about half way down.
-
2. Re: stop/start controls in flv sections
slenderiser Apr 27, 2011 7:45 AM (in response to robdillon)Thanks for the pointer, Rob.
I'm familiar with that article, it got me going with navigating to various parts of my flvs, and I'm okay on using cuePoints, etc. - - I think!
But what I want to do is have my main control buttons (stop and play) dynamic, so they reference only the current "chunk" of video within each chaper..... I guess the Play button is fine, it will start from current point. But I need the stop button to reset to start of currentChapter, not 0:00 in flv, so it keeps the chapters discrete.
I also need the chapter to stop at chapter end.
Thanks
Matt
-
3. Re: stop/start controls in flv sections
robdillon Apr 27, 2011 8:15 AM (in response to slenderiser)You have an array of cue points. If you have both the time and a name for each cue point, then you can use seekToPrevCuePoint() to jump back to the cue point that starts any given section and then use stop() to hold on that cue point.
To stop on any given cue point, you can use a function like this:
my_FLVPlybk.addEventListener(MetadataEvent.CUE_POINT, cp_listener); function cp_listener(eventObject:MetadataEvent):void { if(eventObject.info.name == "cue point name") { pause(); } }
-
4. Re: stop/start controls in flv sections
slenderiser Apr 27, 2011 8:55 AM (in response to robdillon)Thanks Rob. That's really helpful, I think I've got it now.
Matt