IWMVideoMediaProps::SetMaxKeyFrameSpacing method

The SetMaxKeyFrameSpacing method specifies the maximum interval between key frames.


HRESULT SetMaxKeyFrameSpacing(



Maximum key-frame spacing in 100-nanosecond units.

Return value

This method always returns S_OK.


A key frame is a video frame that can be rendered without any information being required from any previous frame. A delta frame is a frame that is dependent on a previous frame. The application can seek to a key frame, but not to a delta frame. The SDK does not enforce any limit on the time between key frames. In general, times longer than 30 seconds can adversely affect seek times both when the content is streamed over a network, and when it is played back locally. For recommended values, see Configuring Video Streams for Seeking Performance.


Minimum supported client Windows 2000 Professional [desktop apps only],Windows Media Format 7 SDK, or later versions of the SDK
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wmsdkidl.h (include Wmsdk.h)
Library Wmvcore.lib

See also

IWMVideoMediaProps Interface