Interface IMFMediaEngineEx
Namespace: MediaFoundation
Assembly: MediaFoundation.dll
Syntax
[Guid("83015ead-b1e6-40d0-a98a-37145ffe1ad1")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMFMediaEngineEx : IMFMediaEngine
Methods
ApplyStreamSelections()
CancelTimelineMarkerTimer()
CanPlayType(String, out MF_MEDIA_ENGINE_CANPLAY)
Declaration
HResult CanPlayType(string type, out MF_MEDIA_ENGINE_CANPLAY pAnswer)
Parameters
System.String
type
|
MF_MEDIA_ENGINE_CANPLAY
pAnswer
|
Returns
HResult
|
EnableHorizontalMirrorMode(Boolean)
Declaration
HResult EnableHorizontalMirrorMode(bool fEnable)
Parameters
System.Boolean
fEnable
|
Returns
HResult
|
EnableTimeUpdateTimer(Boolean)
Declaration
HResult EnableTimeUpdateTimer(bool fEnableTimer)
Parameters
System.Boolean
fEnableTimer
|
Returns
HResult
|
EnableWindowlessSwapchainMode(Boolean)
Declaration
HResult EnableWindowlessSwapchainMode(bool fEnable)
Parameters
System.Boolean
fEnable
|
Returns
HResult
|
FrameStep(Boolean)
GetAudioEndpointRole(out ERole)
GetAudioStreamCategory(out AUDIO_STREAM_CATEGORY)
Declaration
HResult GetAudioStreamCategory(out AUDIO_STREAM_CATEGORY pCategory)
Parameters
AUDIO_STREAM_CATEGORY
pCategory
|
Returns
HResult
|
GetAutoPlay()
Declaration
bool GetAutoPlay()
Returns
System.Boolean
|
GetBalance()
Declaration
double GetBalance()
Returns
System.Double
|
GetBuffered(out IMFMediaTimeRange)
Declaration
HResult GetBuffered(out IMFMediaTimeRange ppBuffered)
Parameters
IMFMediaTimeRange
ppBuffered
|
Returns
HResult
|
GetCurrentSource(out String)
Declaration
HResult GetCurrentSource(out string ppUrl)
Parameters
System.String
ppUrl
|
Returns
HResult
|
GetCurrentTime()
Declaration
double GetCurrentTime()
Returns
System.Double
|
GetDefaultPlaybackRate()
Declaration
double GetDefaultPlaybackRate()
Returns
System.Double
|
GetDuration()
Declaration
double GetDuration()
Returns
System.Double
|
GetError(out IMFMediaError)
Declaration
HResult GetError(out IMFMediaError ppError)
Parameters
IMFMediaError
ppError
|
Returns
HResult
|
GetLoop()
Declaration
bool GetLoop()
Returns
System.Boolean
|
GetMuted()
Declaration
bool GetMuted()
Returns
System.Boolean
|
GetNativeVideoSize(out Int32, out Int32)
Declaration
HResult GetNativeVideoSize(out int cx, out int cy)
Parameters
System.Int32
cx
|
System.Int32
cy
|
Returns
HResult
|
GetNetworkState()
GetNumberOfStreams(out Int32)
Declaration
HResult GetNumberOfStreams(out int pdwStreamCount)
Parameters
System.Int32
pdwStreamCount
|
Returns
HResult
|
GetPlaybackRate()
Declaration
double GetPlaybackRate()
Returns
System.Double
|
GetPlayed(out IMFMediaTimeRange)
Declaration
HResult GetPlayed(out IMFMediaTimeRange ppPlayed)
Parameters
IMFMediaTimeRange
ppPlayed
|
Returns
HResult
|
GetPreload()
GetPresentationAttribute(Guid, PropVariant)
Declaration
HResult GetPresentationAttribute(Guid guidMFAttribute, PropVariant pvValue)
Parameters
System.Guid
guidMFAttribute
|
PropVariant
pvValue
|
Returns
HResult
|
GetReadyState()
GetRealTimeMode(out Boolean)
Declaration
HResult GetRealTimeMode(out bool pfEnabled)
Parameters
System.Boolean
pfEnabled
|
Returns
HResult
|
GetResourceCharacteristics(out MFMEDIASOURCE_CHARACTERISTICS)
Declaration
HResult GetResourceCharacteristics(out MFMEDIASOURCE_CHARACTERISTICS pCharacteristics)
Parameters
MFMEDIASOURCE_CHARACTERISTICS
pCharacteristics
|
Returns
HResult
|
GetSeekable(out IMFMediaTimeRange)
Declaration
HResult GetSeekable(out IMFMediaTimeRange ppSeekable)
Parameters
IMFMediaTimeRange
ppSeekable
|
Returns
HResult
|
GetStartTime()
Declaration
double GetStartTime()
Returns
System.Double
|
GetStatistics(MF_MEDIA_ENGINE_STATISTIC, PropVariant)
Declaration
HResult GetStatistics(MF_MEDIA_ENGINE_STATISTIC StatisticID, PropVariant pStatistic)
Parameters
MF_MEDIA_ENGINE_STATISTIC
StatisticID
|
PropVariant
pStatistic
|
Returns
HResult
|
GetStereo3DFramePackingMode(out MF_MEDIA_ENGINE_S3D_PACKING_MODE)
Declaration
HResult GetStereo3DFramePackingMode(out MF_MEDIA_ENGINE_S3D_PACKING_MODE packMode)
Parameters
MF_MEDIA_ENGINE_S3D_PACKING_MODE
packMode
|
Returns
HResult
|
GetStereo3DRenderMode(out MF3DVideoOutputType)
Declaration
HResult GetStereo3DRenderMode(out MF3DVideoOutputType outputType)
Parameters
MF3DVideoOutputType
outputType
|
Returns
HResult
|
GetStreamAttribute(Int32, Guid, PropVariant)
Declaration
HResult GetStreamAttribute(int dwStreamIndex, Guid guidMFAttribute, PropVariant pvValue)
Parameters
System.Int32
dwStreamIndex
|
System.Guid
guidMFAttribute
|
PropVariant
pvValue
|
Returns
HResult
|
GetStreamSelection(Int32, out Boolean)
Declaration
HResult GetStreamSelection(int dwStreamIndex, out bool pEnabled)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
pEnabled
|
Returns
HResult
|
GetTimelineMarkerTimer(out Double)
Declaration
HResult GetTimelineMarkerTimer(out double pTimeToFire)
Parameters
System.Double
pTimeToFire
|
Returns
HResult
|
GetVideoAspectRatio(out Int32, out Int32)
Declaration
HResult GetVideoAspectRatio(out int cx, out int cy)
Parameters
System.Int32
cx
|
System.Int32
cy
|
Returns
HResult
|
GetVideoSwapchainHandle(out IntPtr)
Declaration
HResult GetVideoSwapchainHandle(out IntPtr phSwapchain)
Parameters
System.IntPtr
phSwapchain
|
Returns
HResult
|
GetVolume()
Declaration
double GetVolume()
Returns
System.Double
|
HasAudio()
Declaration
bool HasAudio()
Returns
System.Boolean
|
HasVideo()
Declaration
bool HasVideo()
Returns
System.Boolean
|
InsertAudioEffect(Object, Boolean)
Declaration
HResult InsertAudioEffect(object pEffect, bool fOptional)
Parameters
System.Object
pEffect
|
System.Boolean
fOptional
|
Returns
HResult
|
InsertVideoEffect(Object, Boolean)
Declaration
HResult InsertVideoEffect(object pEffect, bool fOptional)
Parameters
System.Object
pEffect
|
System.Boolean
fOptional
|
Returns
HResult
|
IsEnded()
Declaration
bool IsEnded()
Returns
System.Boolean
|
IsPaused()
Declaration
bool IsPaused()
Returns
System.Boolean
|
IsPlaybackRateSupported(Double)
Declaration
bool IsPlaybackRateSupported(double rate)
Parameters
System.Double
rate
|
Returns
System.Boolean
|
IsProtected(out Boolean)
Declaration
HResult IsProtected(out bool pProtected)
Parameters
System.Boolean
pProtected
|
Returns
HResult
|
IsSeeking()
Declaration
bool IsSeeking()
Returns
System.Boolean
|
IsStereo3D()
Declaration
bool IsStereo3D()
Returns
System.Boolean
|
Load()
OnVideoStreamTick(out Int64)
Pause()
Play()
RemoveAllEffects()
SetAudioEndpointRole(ERole)
SetAudioStreamCategory(AUDIO_STREAM_CATEGORY)
Declaration
HResult SetAudioStreamCategory(AUDIO_STREAM_CATEGORY category)
Parameters
AUDIO_STREAM_CATEGORY
category
|
Returns
HResult
|
SetAutoPlay(Boolean)
SetBalance(Double)
SetCurrentTime(Double)
Declaration
HResult SetCurrentTime(double seekTime)
Parameters
System.Double
seekTime
|
Returns
HResult
|
SetCurrentTimeEx(Double, MF_MEDIA_ENGINE_SEEK_MODE)
Declaration
HResult SetCurrentTimeEx(double seekTime, MF_MEDIA_ENGINE_SEEK_MODE seekMode)
Parameters
System.Double
seekTime
|
MF_MEDIA_ENGINE_SEEK_MODE
seekMode
|
Returns
HResult
|
SetDefaultPlaybackRate(Double)
Declaration
HResult SetDefaultPlaybackRate(double Rate)
Parameters
System.Double
Rate
|
Returns
HResult
|
SetErrorCode(MF_MEDIA_ENGINE_ERR)
Declaration
HResult SetErrorCode(MF_MEDIA_ENGINE_ERR error)
Parameters
MF_MEDIA_ENGINE_ERR
error
|
Returns
HResult
|
SetLoop(Boolean)
SetMuted(Boolean)
SetPlaybackRate(Double)
SetPreload(MF_MEDIA_ENGINE_PRELOAD)
Declaration
HResult SetPreload(MF_MEDIA_ENGINE_PRELOAD Preload)
Parameters
MF_MEDIA_ENGINE_PRELOAD
Preload
|
Returns
HResult
|
SetRealTimeMode(Boolean)
SetSource(String)
SetSourceElements(IMFMediaEngineSrcElements)
Declaration
HResult SetSourceElements(IMFMediaEngineSrcElements pSrcElements)
Parameters
IMFMediaEngineSrcElements
pSrcElements
|
Returns
HResult
|
SetSourceFromByteStream(IMFByteStream, String)
Declaration
HResult SetSourceFromByteStream(IMFByteStream pByteStream, string pURL)
Parameters
IMFByteStream
pByteStream
|
System.String
pURL
|
Returns
HResult
|
SetStereo3DFramePackingMode(MF_MEDIA_ENGINE_S3D_PACKING_MODE)
Declaration
HResult SetStereo3DFramePackingMode(MF_MEDIA_ENGINE_S3D_PACKING_MODE packMode)
Parameters
MF_MEDIA_ENGINE_S3D_PACKING_MODE
packMode
|
Returns
HResult
|
SetStereo3DRenderMode(MF3DVideoOutputType)
Declaration
HResult SetStereo3DRenderMode(MF3DVideoOutputType outputType)
Parameters
MF3DVideoOutputType
outputType
|
Returns
HResult
|
SetStreamSelection(Int32, Boolean)
Declaration
HResult SetStreamSelection(int dwStreamIndex, bool Enabled)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
Enabled
|
Returns
HResult
|
SetTimelineMarkerTimer(Double)
Declaration
HResult SetTimelineMarkerTimer(double timeToFire)
Parameters
System.Double
timeToFire
|
Returns
HResult
|
SetVolume(Double)
Shutdown()
TransferVideoFrame(Object, MFVideoNormalizedRect, MFRect, MFARGB)
Declaration
HResult TransferVideoFrame(object pDstSurf, MFVideoNormalizedRect pSrc, MFRect pDst, MFARGB pBorderClr)
Parameters
System.Object
pDstSurf
|
MFVideoNormalizedRect
pSrc
|
MFRect
pDst
|
MFARGB
pBorderClr
|
Returns
HResult
|
UpdateVideoStream(MFVideoNormalizedRect, MFRect, MFARGB)
Declaration
HResult UpdateVideoStream(MFVideoNormalizedRect pSrc, MFRect pDst, MFARGB pBorderClr)
Parameters
MFVideoNormalizedRect
pSrc
|
MFRect
pDst
|
MFARGB
pBorderClr
|
Returns
HResult
|