Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1023 Bytes

how-to-seek-during-playback.md

File metadata and controls

36 lines (21 loc) · 1023 Bytes
description ms.assetid title ms.topic ms.date
This topic describes how to seek during playback using MFPlay.
8ccca882-5543-4913-8eb9-8adaed2c57aa
How to Seek During Playback
article
05/31/2018

How to Seek During Playback

[MFPlay is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. ]

This topic describes how to seek during playback using MFPlay.

To Seek During Playback

  1. Initialize a PROPVARIANT to hold the seek time in 100-nanosecond units, as a LARGE_INTEGER (VT_I8) type.
  2. Call IMFPMediaPlayer::SetPosition. Specify MFP_POSITIONTYPE_100NS for the first parameter, and pass in the PROPVARIANT for the second parameter.

Requirements

MFPlay requires Windows 7.

Related topics

Using MFPlay for Audio/Video Playback