I want to press a button and jump 10 seconds ahead in a an .f4v that is imported into the FLVPlayback component.
Using Flash CS5 and AS3.
Here's what I have:
//I can't find any code online to tell me how to do this! I have spent the last 4 hours looking and trying different, sucky, worthless things.
//For example: vid_i.seek(vid_i.findCuePoint("Marker 10", CuePointType.ACTIONSCRIPT)["time"]);
//I want something like this:
// set vid_i.playheadTime = vid_i.playheadTime + 10000
Good Lord, 4 hours online searching for this.
seekto = aud01.playheadTime + 20;
aud01.playheadTime = seekto;
If it's progressive playback then you can only seek to keyframes. If you set keyframe distance at 10 seconds (standard for some media) and skip 10 seconds it will find the next keyframe AFTER the 10 second mark you specify. Worst case scenerio in that situation is you'll skip 19 seconds.
You don't need to assign a variable to it, you can just:
aud01.playheadTime += 20;
It means you have not hired a host who has a streaming server to serve your videos from over a streaming protocol.
Basically progressive play is when you load any http:// address pointing toward a file and it plays off a website. Progressive means you cannot skip to any part of the video that has not downloaded. You can only progressively play it as it downloads.
Alternatively, on a streaming (non-progressive) server you can skip at any time to another part of the movie regardless of keyframes.