AM_SEEKING_SEEKING_CAPABILITIES列舉 (strmif.h)

[與此頁面 相關的功能 DirectShow是舊版功能。 它已被 MediaPlayerIMFMediaEngineMedia Foundation 中的音訊/視訊擷取取代。 這些功能已針對Windows 10和Windows 11進行優化。 Microsoft 強烈建議新程式碼盡可能使用 MediaPlayerIMFMediaEngine音訊/視訊擷取 ,而不是 DirectShow。 Microsoft 建議盡可能重寫使用舊版 API 的現有程式碼,以使用新的 API。]

指定媒體資料流程的搜尋功能。

Syntax

typedef enum AM_SEEKING_SeekingCapabilities {
  AM_SEEKING_CanSeekAbsolute = 0x1,
  AM_SEEKING_CanSeekForwards = 0x2,
  AM_SEEKING_CanSeekBackwards = 0x4,
  AM_SEEKING_CanGetCurrentPos = 0x8,
  AM_SEEKING_CanGetStopPos = 0x10,
  AM_SEEKING_CanGetDuration = 0x20,
  AM_SEEKING_CanPlayBackwards = 0x40,
  AM_SEEKING_CanDoSegments = 0x80,
  AM_SEEKING_Source = 0x100
} AM_SEEKING_SEEKING_CAPABILITIES;

常數

 
AM_SEEKING_CanSeekAbsolute
值: 0x1
資料流程可以搜尋絕對位置。
AM_SEEKING_CanSeekForwards
值: 0x2
資料流程可以向前搜尋。
AM_SEEKING_CanSeekBackwards
值: 0x4
資料流程可以向後搜尋。
AM_SEEKING_CanGetCurrentPos
值: 0x8
資料流程可以報告其目前的位置。 請參閱<備註>。
AM_SEEKING_CanGetStopPos
值: 0x10
資料流程可以報告其停止位置。
AM_SEEKING_CanGetDuration
值: 0x20
資料流程可以報告其持續時間。
AM_SEEKING_CanPlayBackwards
值: 0x40
資料流程可以回溯播放。
AM_SEEKING_CanDoSegments
值: 0x80
資料流程可以執行順暢的迴圈 (請參閱 IMediaSeeking::SetPositions) 。
AM_SEEKING_Source
值: 0x100
保留的。

備註

大部分的 DirectShow 篩選不會報告 AM_SEEKING_CanGetCurrentPos 功能旗標。 不過,Filter Graph Manager 的 IMediaSeeking::GetCurrentPosition 實作是以參考時鐘為基礎,因此即使功能旗標不包含 AM_SEEKING_CanGetCurrentPos,您也可以呼叫此方法。

規格需求

   
標頭 strmif.h (包含 Dshow.h)

另請參閱

DirectShow 列舉型別

IMediaSeeking::CheckCapabilities

IMediaSeeking::GetCapabilities