Note:
The smart seeking feature requires Adobe® Flash® Media Server 3.5.3.
Flash Player 10.1and AIR 2.5 introduce a new behavior, called
smart seeking, which improves the user’s experience when playing
streaming video. If the user seeks a destination inside the buffer
bounds, the runtime reuses the buffer to offer instant seeking.
In previous versions of the runtime, the buffer was not reused.
For example, if a user was playing a video from a streaming server
and the buffer time was set to 20 seconds (
NetStream.bufferTime
),
and the user tried to seek 10 seconds ahead, the runtime would throw
away all the buffer data instead of reusing the 10 seconds already
loaded. This behavior forced the runtime to request new data from
the server much more frequently and cause poor playback performance
on slow connections.
The figure below illustrates how the buffer behaved in the previous
releases of the runtime. The
bufferTime
property
specifies the number of seconds to preload ahead so that if connection
drops the buffer can be used without stopping the video:
Buffer behavior before the smart seeking feature
With the smart seeking feature, the runtime now uses the buffer
to provide instant backward or forward seeking when the user scrubs
the video. The following figure illustrates the new behavior:
Forward seeking with the smart seeking feature
Backward seeking with the smart seeking feature
Smart seeking reuses the buffer when the user seeks forward or
backward, so that playback experience is faster and smoother. One
of the benefits of this new behavior is bandwidth savings for video
publishers. However, if the seeking is outside the buffer limits,
standard behavior occurs, and the runtime requests new data from
the server.
Note:
This behavior does not apply to progressive video download.
To use smart seeking, set
NetStream.inBufferSeek
to
true
.