Interface IMFPMediaItem
Namespace: MediaFoundation.MFPlayer
Assembly: MediaFoundation.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("90EB3E6B-ECBF-45cc-B1DA-C6FE3EA70D57")]
public interface IMFPMediaItem
Methods
GetCharacteristics(out MFP_MEDIAITEM_CHARACTERISTICS)
Declaration
HResult GetCharacteristics(out MFP_MEDIAITEM_CHARACTERISTICS pCharacteristics)
Parameters
MFP_MEDIAITEM_CHARACTERISTICS
pCharacteristics
|
Returns
HResult
|
GetDuration(Guid, PropVariant)
Declaration
HResult GetDuration(Guid guidPositionType, PropVariant pvDurationValue)
Parameters
System.Guid
guidPositionType
|
PropVariant
pvDurationValue
|
Returns
HResult
|
GetMediaPlayer(out IMFPMediaPlayer)
Declaration
HResult GetMediaPlayer(out IMFPMediaPlayer ppMediaPlayer)
Parameters
IMFPMediaPlayer
ppMediaPlayer
|
Returns
HResult
|
GetMetadata(out IPropertyStore)
Declaration
HResult GetMetadata(out IPropertyStore ppMetadataStore)
Parameters
IPropertyStore
ppMetadataStore
|
Returns
HResult
|
GetNumberOfStreams(out Int32)
Declaration
HResult GetNumberOfStreams(out int pdwStreamCount)
Parameters
System.Int32
pdwStreamCount
|
Returns
HResult
|
GetObject(out Object)
Declaration
HResult GetObject(out object ppIUnknown)
Parameters
System.Object
ppIUnknown
|
Returns
HResult
|
GetPresentationAttribute(Guid, PropVariant)
Declaration
HResult GetPresentationAttribute(Guid guidMFAttribute, PropVariant pvValue)
Parameters
System.Guid
guidMFAttribute
|
PropVariant
pvValue
|
Returns
HResult
|
GetStartStopPosition(MFGuid, PropVariant, MFGuid, PropVariant)
Declaration
HResult GetStartStopPosition(MFGuid pguidStartPositionType, PropVariant pvStartValue, MFGuid pguidStopPositionType, PropVariant pvStopValue)
Parameters
MFGuid
pguidStartPositionType
|
PropVariant
pvStartValue
|
MFGuid
pguidStopPositionType
|
PropVariant
pvStopValue
|
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 pfEnabled)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
pfEnabled
|
Returns
HResult
|
GetURL(out String)
GetUserData(out IntPtr)
Declaration
HResult GetUserData(out IntPtr pdwUserData)
Parameters
System.IntPtr
pdwUserData
|
Returns
HResult
|
HasAudio(out Boolean, out Boolean)
Declaration
HResult HasAudio(out bool pfHasAudio, out bool pfSelected)
Parameters
System.Boolean
pfHasAudio
|
System.Boolean
pfSelected
|
Returns
HResult
|
HasVideo(out Boolean, out Boolean)
Declaration
HResult HasVideo(out bool pfHasVideo, out bool pfSelected)
Parameters
System.Boolean
pfHasVideo
|
System.Boolean
pfSelected
|
Returns
HResult
|
IsProtected(out Boolean)
Declaration
HResult IsProtected(out bool pfProtected)
Parameters
System.Boolean
pfProtected
|
Returns
HResult
|
SetStartStopPosition(MFGuid, ConstPropVariant, MFGuid, ConstPropVariant)
Declaration
HResult SetStartStopPosition(MFGuid pguidStartPositionType, ConstPropVariant pvStartValue, MFGuid pguidStopPositionType, ConstPropVariant pvStopValue)
Parameters
MFGuid
pguidStartPositionType
|
ConstPropVariant
pvStartValue
|
MFGuid
pguidStopPositionType
|
ConstPropVariant
pvStopValue
|
Returns
HResult
|
SetStreamSelection(Int32, Boolean)
Declaration
HResult SetStreamSelection(int dwStreamIndex, bool fEnabled)
Parameters
System.Int32
dwStreamIndex
|
System.Boolean
fEnabled
|
Returns
HResult
|
SetStreamSink(Int32, Object)
Declaration
HResult SetStreamSink(int dwStreamIndex, object pMediaSink)
Parameters
System.Int32
dwStreamIndex
|
System.Object
pMediaSink
|
Returns
HResult
|
SetUserData(IntPtr)
Declaration
HResult SetUserData(IntPtr dwUserData)
Parameters
System.IntPtr
dwUserData
|
Returns
HResult
|