Methods (3)
Namespace: CSCore.MediaFoundation

Syntax

public class MediaFoundationException : Win32ComException

Base Type

Summary

Mediafoundation COM Exception

Used by

Methods

MediaFoundationException(Int32 result, String interfaceName, String member)

Initializes a new instance of the MediaFoundationException class.

public void MediaFoundationException(Int32 result, String interfaceName, String member)

Parameters

result

Int32

Errorcode.

interfaceName

String

Name of the interface which contains the COM-function which returned the specified result.

member

String

Name of the COM-function which returned the specified result.

MediaFoundationException(SerializationInfo info, StreamingContext context)

Initializes a new instance of the MediaFoundationException class from serialization data.

public void MediaFoundationException(SerializationInfo info, StreamingContext context)

Parameters

info

SerializationInfo

The SerializationInfo object that holds the serialized object data.

context

StreamingContext

The StreamingContext object that supplies the contextual information about the source or destination.

Try(Int32 result, String interfaceName, String member)

Throws an MediaFoundationException if the result is not S_OK.

public static void Try(Int32 result, String interfaceName, String member)

Parameters

result

Int32

Errorcode.

interfaceName

String

Name of the interface which contains the COM-function which returned the specified result.

member

String

Name of the COM-function which returned the specified result.

Class Diagram

public classMediaFoundationExceptionTryMediaFoundationExceptionMediaFoundationExceptionpublic classWin32ComExceptionGetObjectDataTryWin32ComExceptionWin32ComExceptionInterfaceName { get; set; }Member { get; set; }public classMediaFoundationEncoderCreateAACEncoderCreateAACEncoderCreateMP3EncoderCreateMP3EncoderCreateWMAEncoderCreateWMAEncoderDisposeDisposeEncodeWholeSourceFinalizeFindBestMediaTypeGetEncoderMediaTypesSetTargetStreamWriteMediaFoundationEncoderEncodedDuration { get; }OutputMediaType { get; }SinkWriter { get; set; }TargetBaseStream { get; }TargetStream { get; set; }public classMFActivateActivateObjectActivateObjectActivateObjectNativeDetachObjectDetachObjectNativeShutdownObjectShutdownObjectNativeMFActivatepublic classMFAttributesCompareCompareItemCompareItemNativeCompareNativeCopyAllItemsCopyAllItemsNativeDeleteAllItemsDeleteAllItemsNativeDeleteItemDeleteItemNativeExistsGetGetGetAllocatedBlobNativeGetAllocatedStringNativeGetBlobGetBlobGetBlobNativeGetBlobSizeGetBlobSizeNativeGetCountGetCountNativeGetDoubleGetDoubleNativeGetGuidGetGuidNativeGetItemGetItemByIndexGetItemByIndexNativeGetItemNativeGetItemTypeGetItemTypeNativeGetStringGetStringLengthGetStringLengthNativeGetStringNativeGetUINT32GetUINT32NativeGetUINT64GetUINT64NativeGetUnknownNativeLockStoreLockStoreNativeSetSetSetBlobSetBlobNativeSetDoubleSetDoubleNativeSetGuidSetGuidNativeSetItemSetItemNativeSetStringSetStringNativeSetUINT32SetUINT32NativeSetUINT64SetUINT64NativeSetUnknownNativeUnlockStoreUnlockStoreNativeMFAttributesMFAttributesMFAttributesCount { get; }Item { get; set; }public classMFByteStreamBeginReadNativeBeginWriteNativeCloseCloseNativeDisposeEndReadNativeEndWriteNativeFlushFlushNativeGetCapabilitiesNativeGetCurrentPositionNativeGetLengthNativeIsEndOfStreamNativeReadReadNativeSeekSeekNativeSetCurrentPositionNativeSetLengthNativeWriteWriteNativeMFByteStreamMFByteStreamCapabilities { get; }CurrentPosition { get; set; }IsEndOfStream { get; }Length { get; set; }public classMFMediaBufferGetCurrentLengthGetCurrentLengthNativeGetMaxLengthGetMaxLengthNativeLockLockLockNativeSetCurrentLengthSetCurrentLengthNativeUnlockUnlockNativeMFMediaBufferMFMediaBufferCurrentLength { get; set; }MaxLength { get; }public classMFMediaTypeCreateEmptyFreeRepresentationFreeRepresentationNativeFromWaveFormatGetMajorTypeGetMajorTypeNativeGetRepresentationGetRepresentationNativeIsCompressedFormatIsCompressedFormatNativeIsEqualIsEqualNativeToWaveFormatMFMediaTypeAverageBytesPerSecond { get; set; }BitsPerSample { get; set; }ChannelMask { get; set; }Channels { get; set; }IsCompressed { get; }MajorType { get; set; }SampleRate { get; set; }SubType { get; set; }public classMFSampleAddBufferAddBufferNativeConvertToContiguousBufferConvertToContiguousBufferNativeCopyToBufferCopyToBufferNativeGetBufferByIndexGetBufferByIndexNativeGetBufferCountGetBufferCountNativeGetSampleDurationGetSampleDurationNativeGetSampleFlagsGetSampleFlagsNativeGetSampleTimeGetSampleTimeNativeGetTotalLengthGetTotalLengthNativeRemoveAllBuffersRemoveAllBuffersNativeRemoveBufferByIndexRemoveBufferByIndexNativeSetSampleDurationSetSampleDurationNativeSetSampleFlagsSetSampleFlagsNativeSetSampleTimeSetSampleTimeNativeMFSampleMFSamplepublic classMFSinkWriterMF_SINK_WRITER_ALL_STREAMSMF_SINK_WRITER_MEDIASINKAddStreamAddStreamNativeBeginWritingBeginWritingNativeFinalizeWritingFinalizeWritingNativeFlushFlushNativeGetServiceForStreamGetServiceForStreamNativeGetStatisticsGetStatisticsNativeNotifyEndOfSegmentNotifyEndOfSegmentNativePlaceMarkerPlaceMarkerNativeSendStreamTickSendStreamTickNativeSetInputMediaTypeSetInputMediaTypeNativeWriteSampleWriteSampleNativeMFSinkWriterMFSinkWriterpublic classMFSourceReaderFlushFlushNativeGetCurrentMediaTypeGetCurrentMediaTypeNativeGetNativeMediaTypeGetNativeMediaTypeNativeGetPresentationAttributeGetPresentationAttributeNativeGetServiceForStreamGetServiceForStreamNativeGetStreamSelectionGetStreamSelectionNativeReadSampleReadSampleNativeSetCurrentMediaTypeSetCurrentMediaTypeNativeSetCurrentPositionSetCurrentPositionNativeSetStreamSelectionSetStreamSelectionNativeMFSourceReaderMFSourceReaderCanSeek { get; }MediaSourceCharacteristics { get; }public static classMFTEnumeratorEnumerateTransformsEnumerateTransformsEx

save

reset

Drag to pan - Use Mousewheel + Ctrl to zoom