NetStream.seek in "Data Generation Mode"

790 Views Asked by At

I created a flv player using the method NetStream.appendBytes for entering data into the buffer. For now, I perform the seek action in this way:

ns.seek (0);
ns.appendBytesAction (NetStreamAppendBytesAction.RESET_SEEK);
ns.appendBytes (seekPosBytes);

Like I've read here

I perform a seek(number) (which from what I've understood flushes the buffer) and beginning to incorporate the new bytes (those related to the position from which I start to play). This means that even if the entire video is loaded, the buffer is emptied and everything has to be reloaded. It is possible to seek using the data already loaded into the buffer using the method NetStream.appendBytes?

1

There are 1 best solutions below

0
On

have you tried setting the netstream's inbufferseek property to true?