MediaPipeline.Seek (gb.media)

Sub Seek ( Position As Float [ , Flags As Integer ] )

Поскольку 3.13

Move the stream to a specific position, following the constraints defined by the specified flags.

  • Position: the stream position in seconds.

  • Flags: the seeking options.

The Flags are a logical combination of the following options:
Media.SeekAccurate Accurate position is requested, this might be considerably slower for some formats.
Media.SeekKeyUnit Seek to the nearest keyframe. This might be faster but less accurate.
Media.SeekTrickMode When doing fast forward or fast reverse playback, allow elements to skip frames instead of generating all frames.
Media.SeekSnapBefore Go to a location before the requested position. With the SeekKeyUnit flag, it means the keyframe at or before the requested position the one at or before the seek target.
Media.SeekSnapAfter Go to a location after the requested position. With the SeekKeyUnit flag, it means the keyframe at of after the requested position.
Media.SeekSnapNearest Go to a position near the requested position. With the SeekKeyUnit flag, it means the keyframe closest to the requested position. If both keyframes are at an equal distance, behaves like SeekSnapBefore.
Media.SeekTrickModeKeyUnit When doing fast forward or fast reverse playback, request that elements only decode keyframes and skip all other content, for formats that have keyframes.
Media.SeekTrickModeNoAudio When doing fast forward or fast reverse playback, request that audio decoder elements skip decoding and output only gap events or silence.