PrepareTranscodeResult PrepareTranscodeResult PrepareTranscodeResult PrepareTranscodeResult PrepareTranscodeResult Class


Represents an asynchronous media transcode deferral operation which can be used to start the transcode operation.

public : sealed class PrepareTranscodeResult : IPrepareTranscodeResult
struct winrt::Windows::Media::Transcoding::PrepareTranscodeResult : IPrepareTranscodeResult
public sealed class PrepareTranscodeResult : IPrepareTranscodeResult
Public NotInheritable Class PrepareTranscodeResult Implements IPrepareTranscodeResult
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


This object is not instantiated directly. It is returned in a call to prepareFileTranscodeAsync, prepareStreamTranscodeAsync, and PrepareMediaStreamSourceTranscodeAsync.

For how-to guidance on transcoding media files, see Transcode media files.


CanTranscode CanTranscode CanTranscode CanTranscode CanTranscode

Indicates whether the trancode operation can be performed successfully.

public : Platform::Boolean CanTranscode { get; }
bool CanTranscode();
public bool CanTranscode { get; }
Public ReadOnly Property CanTranscode As bool
var bool = prepareTranscodeResult.canTranscode;
bool bool bool

True if the trancode operation can be performed successfully; false otherwise.

FailureReason FailureReason FailureReason FailureReason FailureReason

Specifies the reason for the transcode failure.

public : TranscodeFailureReason FailureReason { get; }
TranscodeFailureReason FailureReason();
public TranscodeFailureReason FailureReason { get; }
Public ReadOnly Property FailureReason As TranscodeFailureReason
var transcodeFailureReason = prepareTranscodeResult.failureReason;
TranscodeFailureReason TranscodeFailureReason TranscodeFailureReason

The reason for the transcode failure.


TranscodeAsync() TranscodeAsync() TranscodeAsync() TranscodeAsync() TranscodeAsync()

Creates an object to perform an asynchronous media transcode operation on media data.

public : IAsyncActionWithProgress<double> TranscodeAsync()
IAsyncActionWithProgress<double> TranscodeAsync() const;
public IAsyncActionWithProgress<double> TranscodeAsync()
Public Function TranscodeAsync() As IAsyncActionWithProgress( Of double )
Windows.Media.Transcoding.PrepareTranscodeResult.transcodeAsync().done( /* Your success and error handlers */ );

An object that is used to control the asynchronous operation.

See Also

See Also