Interface IMFPMediaPlayer
Namespace: MediaFoundation.MFPlayer
Assembly: MediaFoundation.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("A714590A-58AF-430a-85BF-44F5EC838D85")]
public interface IMFPMediaPlayer
Methods
ClearMediaItem()
CreateMediaItemFromObject(Object, Boolean, IntPtr, out IMFPMediaItem)
Declaration
HResult CreateMediaItemFromObject(object pIUnknownObj, bool fSync, IntPtr dwUserData, out IMFPMediaItem ppMediaItem)
Parameters
System.Object
pIUnknownObj
|
System.Boolean
fSync
|
System.IntPtr
dwUserData
|
IMFPMediaItem
ppMediaItem
|
Returns
HResult
|
CreateMediaItemFromURL(String, Boolean, IntPtr, out IMFPMediaItem)
Declaration
HResult CreateMediaItemFromURL(string pwszURL, bool fSync, IntPtr dwUserData, out IMFPMediaItem ppMediaItem)
Parameters
System.String
pwszURL
|
System.Boolean
fSync
|
System.IntPtr
dwUserData
|
IMFPMediaItem
ppMediaItem
|
Returns
HResult
|
FrameStep()
GetAspectRatioMode(out MFVideoAspectRatioMode)
Declaration
HResult GetAspectRatioMode(out MFVideoAspectRatioMode pdwAspectRatioMode)
Parameters
MFVideoAspectRatioMode
pdwAspectRatioMode
|
Returns
HResult
|
GetBalance(out Single)
Declaration
HResult GetBalance(out float pflBalance)
Parameters
System.Single
pflBalance
|
Returns
HResult
|
GetBorderColor(out Color)
Declaration
HResult GetBorderColor(out Color pClr)
Parameters
System.Drawing.Color
pClr
|
Returns
HResult
|
GetDuration(Guid, PropVariant)
Declaration
HResult GetDuration(Guid guidPositionType, PropVariant pvPositionValue)
Parameters
System.Guid
guidPositionType
|
PropVariant
pvPositionValue
|
Returns
HResult
|
GetIdealVideoSize(MFSize, MFSize)
Declaration
HResult GetIdealVideoSize(MFSize pszMin, MFSize pszMax)
Parameters
MFSize
pszMin
|
MFSize
pszMax
|
Returns
HResult
|
GetMediaItem(out IMFPMediaItem)
Declaration
HResult GetMediaItem(out IMFPMediaItem ppIMFPMediaItem)
Parameters
IMFPMediaItem
ppIMFPMediaItem
|
Returns
HResult
|
GetMute(out Boolean)
GetNativeVideoSize(MFSize, MFSize)
Declaration
HResult GetNativeVideoSize(MFSize pszVideo, MFSize pszARVideo)
Parameters
MFSize
pszVideo
|
MFSize
pszARVideo
|
Returns
HResult
|
GetPosition(Guid, PropVariant)
Declaration
HResult GetPosition(Guid guidPositionType, PropVariant pvPositionValue)
Parameters
System.Guid
guidPositionType
|
PropVariant
pvPositionValue
|
Returns
HResult
|
GetRate(out Single)
GetState(out MFP_MEDIAPLAYER_STATE)
Declaration
HResult GetState(out MFP_MEDIAPLAYER_STATE peState)
Parameters
MFP_MEDIAPLAYER_STATE
peState
|
Returns
HResult
|
GetSupportedRates(Boolean, out Single, out Single)
Declaration
HResult GetSupportedRates(bool fForwardDirection, out float pflSlowestRate, out float pflFastestRate)
Parameters
System.Boolean
fForwardDirection
|
System.Single
pflSlowestRate
|
System.Single
pflFastestRate
|
Returns
HResult
|
GetVideoSourceRect(MFVideoNormalizedRect)
Declaration
HResult GetVideoSourceRect(MFVideoNormalizedRect pnrcSource)
Parameters
MFVideoNormalizedRect
pnrcSource
|
Returns
HResult
|
GetVideoWindow(out IntPtr)
Declaration
HResult GetVideoWindow(out IntPtr phwndVideo)
Parameters
System.IntPtr
phwndVideo
|
Returns
HResult
|
GetVolume(out Single)
Declaration
HResult GetVolume(out float pflVolume)
Parameters
System.Single
pflVolume
|
Returns
HResult
|
InsertEffect(Object, Boolean)
Declaration
HResult InsertEffect(object pEffect, bool fOptional)
Parameters
System.Object
pEffect
|
System.Boolean
fOptional
|
Returns
HResult
|
Pause()
Play()
RemoveAllEffects()
RemoveEffect(Object)
SetAspectRatioMode(MFVideoAspectRatioMode)
Declaration
HResult SetAspectRatioMode(MFVideoAspectRatioMode dwAspectRatioMode)
Parameters
MFVideoAspectRatioMode
dwAspectRatioMode
|
Returns
HResult
|
SetBalance(Single)
SetBorderColor(Color)
SetMediaItem(IMFPMediaItem)
Declaration
HResult SetMediaItem(IMFPMediaItem pIMFPMediaItem)
Parameters
IMFPMediaItem
pIMFPMediaItem
|
Returns
HResult
|
SetMute(Boolean)
SetPosition(Guid, ConstPropVariant)
Declaration
HResult SetPosition(Guid guidPositionType, ConstPropVariant pvPositionValue)
Parameters
System.Guid
guidPositionType
|
ConstPropVariant
pvPositionValue
|
Returns
HResult
|
SetRate(Single)
SetVideoSourceRect(MFVideoNormalizedRect)
Declaration
HResult SetVideoSourceRect(MFVideoNormalizedRect pnrcSource)
Parameters
MFVideoNormalizedRect
pnrcSource
|
Returns
HResult
|