Interface IMFMediaEngine
Namespace: MediaFoundation
Assembly: MediaFoundation.dll
Syntax
[Guid("98a1b0bb-03eb-4935-ae7c-93c1fa0e1c93")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IMFMediaEngine
Methods
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
|
GetAutoPlay()
Declaration
bool GetAutoPlay()
Returns
System.Boolean
|
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()
GetPlaybackRate()
Declaration
double GetPlaybackRate()
Returns
System.Double
|
GetPlayed(out IMFMediaTimeRange)
Declaration
HResult GetPlayed(out IMFMediaTimeRange ppPlayed)
Parameters
IMFMediaTimeRange
ppPlayed
|
Returns
HResult
|
GetPreload()
GetReadyState()
GetSeekable(out IMFMediaTimeRange)
Declaration
HResult GetSeekable(out IMFMediaTimeRange ppSeekable)
Parameters
IMFMediaTimeRange
ppSeekable
|
Returns
HResult
|
GetStartTime()
Declaration
double GetStartTime()
Returns
System.Double
|
GetVideoAspectRatio(out Int32, out Int32)
Declaration
HResult GetVideoAspectRatio(out int cx, out int cy)
Parameters
System.Int32
cx
|
System.Int32
cy
|
Returns
HResult
|
GetVolume()
Declaration
double GetVolume()
Returns
System.Double
|
HasAudio()
Declaration
bool HasAudio()
Returns
System.Boolean
|
HasVideo()
Declaration
bool HasVideo()
Returns
System.Boolean
|
IsEnded()
Declaration
bool IsEnded()
Returns
System.Boolean
|
IsPaused()
Declaration
bool IsPaused()
Returns
System.Boolean
|
IsSeeking()
Declaration
bool IsSeeking()
Returns
System.Boolean
|
Load()
OnVideoStreamTick(out Int64)
Pause()
Play()
SetAutoPlay(Boolean)
SetCurrentTime(Double)
Declaration
HResult SetCurrentTime(double seekTime)
Parameters
System.Double
seekTime
|
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
|
SetSource(String)
SetSourceElements(IMFMediaEngineSrcElements)
Declaration
HResult SetSourceElements(IMFMediaEngineSrcElements pSrcElements)
Parameters
IMFMediaEngineSrcElements
pSrcElements
|
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
|