MediaComposition.RenderToFileAsync MediaComposition.RenderToFileAsync MediaComposition.RenderToFileAsync MediaComposition.RenderToFileAsync MediaComposition.RenderToFileAsync Method

Definition

Overloads

RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile)

Asynchronously renders the MediaComposition to the specified file.

RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference)

Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference.

RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile)

Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference and encoding profile.

RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile) RenderToFileAsync(IStorageFile)

Asynchronously renders the MediaComposition to the specified file.

public : IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination)
IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination) const;
public IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination)
Public Function RenderToFileAsync(destination As IStorageFile) As IAsyncOperationWithProgress(Of TranscodeFailureReasondouble)
Windows.Media.Editing.MediaComposition.renderToFileAsync(destination).done( /* Your success and error handlers */ );

Parameters

destination
IStorageFile IStorageFile IStorageFile

The file to which this MediaComposition is rendered.

Returns

Remarks

This method saves the composition to a video file that can be played back with standard media players. If you want to save the composition as an XML file that can be loaded and modified in the future, use SaveAsync.

See also

RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference) RenderToFileAsync(IStorageFile, MediaTrimmingPreference)

Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference.

public : IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference)
IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference) const;
public IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference)
Public Function RenderToFileAsync(destination As IStorageFile, trimmingPreference As MediaTrimmingPreference) As IAsyncOperationWithProgress(Of TranscodeFailureReasondouble)
Windows.Media.Editing.MediaComposition.renderToFileAsync(destination, trimmingPreference).done( /* Your success and error handlers */ );

Parameters

destination
IStorageFile IStorageFile IStorageFile

The file to which this MediaComposition is rendered.

trimmingPreference
MediaTrimmingPreference MediaTrimmingPreference MediaTrimmingPreference

Specifies whether to be fast or precise when trimming the media.

Returns

Remarks

This method saves the composition to a video file that can be played back with standard media players. If you want to save the composition as an XML file that can be loaded and modified in the future, use SaveAsync.

See also

RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile) RenderToFileAsync(IStorageFile, MediaTrimmingPreference, MediaEncodingProfile)

Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference and encoding profile.

public : IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference, MediaEncodingProfile encodingProfile)
IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference, MediaEncodingProfile encodingProfile) const;
public IAsyncOperationWithProgress<TranscodeFailureReason, double> RenderToFileAsync(IStorageFile destination, MediaTrimmingPreference trimmingPreference, MediaEncodingProfile encodingProfile)
Public Function RenderToFileAsync(destination As IStorageFile, trimmingPreference As MediaTrimmingPreference, encodingProfile As MediaEncodingProfile) As IAsyncOperationWithProgress(Of TranscodeFailureReasondouble)
Windows.Media.Editing.MediaComposition.renderToFileAsync(destination, trimmingPreference, encodingProfile).done( /* Your success and error handlers */ );

Parameters

destination
IStorageFile IStorageFile IStorageFile

The file to which this MediaComposition is rendered.

trimmingPreference
MediaTrimmingPreference MediaTrimmingPreference MediaTrimmingPreference

Specifies whether to be fast or precise when trimming the media.

encodingProfile
MediaEncodingProfile MediaEncodingProfile MediaEncodingProfile

Specifies the encoding profile to use for rendering the media.

Returns

Remarks

This method saves the composition to a video file that can be played back with standard media players. If you want to save the composition as an XML file that can be loaded and modified in the future, use SaveAsync.

See also