次の方法で共有


IMediaRenderer::SeekAsync method (windows.media.streaming.h)

Instructs the DMR asynchronously to seek to a particular time offset.

Syntax

HRESULT SeekAsync(
  [in]  ABI::Windows::Foundation::TimeSpan     target,
  [out] ABI::Windows::Foundation::IAsyncAction **value
);

Parameters

[in] target

A TimeSpan value that specifies the seek offset. This value must be 0 (indicating the beginning of the content) or greater, but less than the value of PositionInformation.TrackDuration which is obtained by calling GetPositionInformationAsync.

[out] value

Receives a reference to a PlaybackOperation object that is used to get results from the asynchronous operation.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Requirements

Requirement Value
Target Platform Windows
Header windows.media.streaming.h

See also

IMediaRenderer