PrepareTranscodeResult class

This topic has not yet been rated - Rate this topic

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.

MethodDescription
TranscodeAsync Creates an object to perform an asynchronous media transcode operation on media data.

 

Properties

The PrepareTranscodeResult class has these properties.

PropertyAccess typeDescription

CanTranscode

Read-onlyIndicates whether the trancode operation can be performed successfully.

FailureReason

Read-onlySpecifies 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

Windows.Media.Transcoding
Windows::Media::Transcoding [C++]

Metadata

Windows.winmd

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.