Hi,

Just a shot in the dark, but two things come to mind.

You're using John's FLV player - so I'm not sure how it does a "rewind",
but if you're writing your own code, I'd suggest something simple like:

        ns.seek(0);

To return the playhead to the beginning of the video.  If you want to
pause it there, or force playback, then just do one of these next:

        ns.pause();
        ns.play(0);

Second, the slider bar, when moved, is going to try to seek to the closest
keyframe in the video.  Given that with most encoding software, you only
have the option of "automatic" keyframes (the software will put them in
when it determines one is needed to improve the quality) or forcing the
creation of a keyframe every N frames (which increases the overall size of
the FLV as N approaches 1 - most guides recommed placing a keyframe
every six seconds, and then working around from there).  So what you may
be seeing with your slider bar is just normal behaviour.

If you're capturing video from a web camera - I'm not entirely certain how
keyframes are (or perhaps are not) added to the FLV file.  What were these
examples that you didn't use the Flash 8 Encoder to create made with?

Nate


On Mon, 26 Mar 2007, Max Medvetsky wrote:

> Hello everyone!
> I'm using a trunk version (r1777) and I noticed that the "rewind" 
> function now behaves somewhat differently from rc2's. I know that after 
> rc2 release a new .meta format was introduced to avoid the reparsing of 
> flv. I can no longer rewind to a particular place, or at least I cannot 
> do it 100% of the time. Sometimes the playback starts from the slider 
> point, and sometimes it just continues playing and it ignores a slider 
> being moved altogether. One little detail: this does not happen if I'm 
> using Flash 8 Encoder to produce flv file, but only if I'm using 
> Sorensen Squeeze 4.5 (VP6 2-pass VBR 256Kbit). So I'm wondering whether 
> there are any flv format variations that aren't fully supported by red5? 
> (like using progressive jpegs was not supported by Flash player some 
> time ago). Did anyone else come across this problem? The described 
> behavior was reproduced by using Flv Steram Player written by John Grden 
> and the latest trunk version (r1777), so I didn't write any code, and 
> it's not therefore my bug


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to