MediaTranscoder.PrepareStreamTranscodeAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously initializes the trancode operation on the specified stream and returns a PrepareTranscodeResult object which can be used to start the transcode operation.
public:
virtual IAsyncOperation<PrepareTranscodeResult ^> ^ PrepareStreamTranscodeAsync(IRandomAccessStream ^ source, IRandomAccessStream ^ destination, MediaEncodingProfile ^ profile) = PrepareStreamTranscodeAsync;
IAsyncOperation<PrepareTranscodeResult> PrepareStreamTranscodeAsync(IRandomAccessStream const& source, IRandomAccessStream const& destination, MediaEncodingProfile const& profile);
public IAsyncOperation<PrepareTranscodeResult> PrepareStreamTranscodeAsync(IRandomAccessStream source, IRandomAccessStream destination, MediaEncodingProfile profile);
function prepareStreamTranscodeAsync(source, destination, profile)
Public Function PrepareStreamTranscodeAsync (source As IRandomAccessStream, destination As IRandomAccessStream, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)
Parameters
- source
- IRandomAccessStream
The source stream.
source cannot be a InMemoryRandomAccessStream or other writeable stream.
- destination
- IRandomAccessStream
The destination stream.
- profile
- 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.
Examples
The following example shows how to use this method to transcode a stream.
var transcoder = new Windows.Media.Transcoding.MediaTranscoder();
return transcoder.prepareStreamTranscodeAsync(sourceStream, destinationStream, profile);
Remarks
The source parameter cannot be a InMemoryRandomAccessStream or other writeable stream.