共用方式為


MediaTranscoder.PrepareFileTranscodeAsync 方法

定義

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

public:
 virtual IAsyncOperation<PrepareTranscodeResult ^> ^ PrepareFileTranscodeAsync(IStorageFile ^ source, IStorageFile ^ destination, MediaEncodingProfile ^ profile) = PrepareFileTranscodeAsync;
IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile const& source, IStorageFile const& destination, MediaEncodingProfile const& profile);
public IAsyncOperation<PrepareTranscodeResult> PrepareFileTranscodeAsync(IStorageFile source, IStorageFile destination, MediaEncodingProfile profile);
function prepareFileTranscodeAsync(source, destination, profile)
Public Function PrepareFileTranscodeAsync (source As IStorageFile, destination As IStorageFile, profile As MediaEncodingProfile) As IAsyncOperation(Of PrepareTranscodeResult)

參數

source
IStorageFile

原始檔。

destination
IStorageFile

目的地檔案。

profile
MediaEncodingProfile

要用於作業的設定檔。

傳回

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

適用於

另請參閱