MediaTranscoder.PrepareStreamTranscodeAsync メソッド

定義

指定したストリームで trancode 操作を非同期的に初期化し、トランスコード操作を開始するために使用できる PrepareTranscodeResult オブジェクトを返します。

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)

パラメーター

source
IRandomAccessStream

ソース ストリーム。

sourceInMemoryRandomAccessStream またはその他の書き込み可能なストリームを指定することはできません。

destination
IRandomAccessStream

宛先のストリーム。

profile
MediaEncodingProfile

操作に使用するプロファイル。

戻り値

このメソッドが完了すると、トランスコードを開始するために使用できる PrepareTranscodeResult オブジェクトが返されます。

次の例は、このメソッドを使用してストリームをトランスコードする方法を示しています。

var transcoder = new Windows.Media.Transcoding.MediaTranscoder();
return transcoder.prepareStreamTranscodeAsync(sourceStream, destinationStream, profile);

注釈

source パラメーターに InMemoryRandomAccessStream またはその他の書き込み可能なストリームを指定することはできません。

適用対象