MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync(IMediaSource, IRandomAccessStream, MediaEncodingProfile) Method

Definition

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

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

Parameters

source
IMediaSource IMediaSource IMediaSource

The media source to perform the transcode operation on.

destination
IRandomAccessStream IRandomAccessStream IRandomAccessStream

The destination stream for the transcoded media data.

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.