Share via


MediaTranscoder.PrepareStreamTranscodeAsync 메서드

정의

지정된 스트림에서 트랜코드 작업을 비동기적으로 초기화하고 코드 변환 작업을 시작하는 데 사용할 수 있는 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);

설명

원본 매개 변수는 InMemoryRandomAccessStream 또는 다른 쓰기 가능한 스트림일 수 없습니다.

적용 대상