MediaTranscoder.PrepareMediaStreamSourceTranscodeAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
以非同步方式初始化指定媒體來源上的 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 物件,可用來啟動轉碼。