Represents an asynchronous media transcode deferral operation.
Syntax
/* For information about creating or accessing this object, see Remarks. */
Attributes
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The PrepareTranscodeResult class has these types of members:
Methods
The PrepareTranscodeResult class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
| Method | Description |
|---|---|
| TranscodeAsync | Creates an object to perform an asynchronous media transcode operation on media data. |
Properties
The PrepareTranscodeResult class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read-only | Indicates whether the trancode operation can be performed successfully. | |
| Read-only | Specifies the reason for the transcode failure. |
Remarks
This object is not instantiated directly. It is returned in a call to prepareFileTranscodeAsync and prepareStreamTranscodeAsync.
Examples
The following example uses the TranscodeAsync method to complete a transcode operation.function setDeferral() { transcoder = new Windows.Media.Transcoding.MediaTranscoder(); var deferral = transcoder.prepareFileTranscodeAsync(inputFile, outputFile, profile); deferral.then(completeTranscode, transcodeError); }; } function completeTranscode { if (!result.canTranscode) { // Display error } else { result.transcodeAsync(); } }
Requirements
|
Minimum supported client | Windows 8 [Windows Store apps, desktop apps] |
|---|---|
|
Minimum supported server | Windows Server 2012 [Windows Store apps, desktop apps] |
|
Namespace |
|
|
Metadata |
|
See also
- Roadmaps
- Adding multimedia to Windows Store apps using C++, C#, or Visual Basic
- Adding multimedia to Windows Store apps using JavaScript
- Samples
- Transcoding media sample
- Media extension sample
- Real-Time communication sample
Build date: 12/4/2012