共用方式為


MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync 方法

定義

以非同步方式初始化指定媒體來源上的 trancode 作業,並傳回 PrepareTranscodeResult 物件,此物件可用來啟動轉碼作業。

public:
 virtual IAsyncOperation<PrepareTranscodeResult ^> ^ PrepareMediaStreamSourceTranscodeAsync(IMediaSource ^ source, IRandomAccessStream ^ destination, MediaEncodingProfile ^ profile) = PrepareMediaStreamSourceTranscodeAsync;
IAsyncOperation<PrepareTranscodeResult> PrepareMediaStreamSourceTranscodeAsync(IMediaSource const& source, IRandomAccessStream const& destination, MediaEncodingProfile const& profile);
public IAsyncOperation<PrepareTranscodeResult> PrepareMediaStreamSourceTranscodeAsync(IMediaSource source, IRandomAccessStream destination, MediaEncodingProfile profile);
function prepareMediaStreamSourceTranscodeAsync(source, destination, profile)
Public Function PrepareMediaStreamSourceTranscodeAsync (source As IMediaSource, destination As IRandomAccessStream, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)

參數

source
IMediaSource

要執行轉碼作業的媒體來源。

destination
IRandomAccessStream

轉碼媒體資料的目的地資料流程。

profile
MediaEncodingProfile

要用於作業的設定檔。

傳回

當這個方法完成時,會傳回 PrepareTranscodeResult 物件,可用來啟動轉碼。

適用於