MediaTranscoder.PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) MediaTranscoder.PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) MediaTranscoder.PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) MediaTranscoder.PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) MediaTranscoder.PrepareFileTranscodeAsync(IStorageFile, IStorageFile, MediaEncodingProfile) Method

Definition

Asynchronously initializes the trancode operation on the specified file and returns a PrepareTranscodeResult object which can be used to start the transcode operation.

public : IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile source, IStorageFile destination, MediaEncodingProfile profile)
IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile source, IStorageFile destination, MediaEncodingProfile profile) const;
public IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile source, IStorageFile destination, MediaEncodingProfile profile)
Public Function PrepareFileTranscodeAsync(source As IStorageFile, destination As IStorageFile, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)
Windows.Media.Transcoding.MediaTranscoder.prepareFileTranscodeAsync(source, destination, profile).done( /* Your success and error handlers */ );

Parameters

source
IStorageFile IStorageFile IStorageFile

The source file.

destination
IStorageFile IStorageFile IStorageFile

The destination file.

profile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

The profile to use for the operation.

Returns

When this method completes, a PrepareTranscodeResult object is returned which can be used to start the transcode.

See also