MediaComposition.SaveAsync(IStorageFile) MediaComposition.SaveAsync(IStorageFile) MediaComposition.SaveAsync(IStorageFile) MediaComposition.SaveAsync(IStorageFile) MediaComposition.SaveAsync(IStorageFile) Method

Definition

Asynchronously serializes the MediaComposition to disk so that it can be loaded and modified in the future.

public : IAsyncAction SaveAsync(IStorageFile file)
IAsyncAction SaveAsync(IStorageFile file) const;
public IAsyncAction SaveAsync(IStorageFile file)
Public Function SaveAsync(file As IStorageFile) As IAsyncAction
Windows.Media.Editing.MediaComposition.saveAsync(file).done( /* Your success and error handlers */ );

Parameters

file
IStorageFile IStorageFile IStorageFile

The file to which the MediaComposition is saved.

Returns

An async action which can be used to track the success or failure of the operation.

Remarks

This method saves the composition as an XML file containing metadata about the composition such as the source media files, arrangement of clips, overlays, and effects applied to the composition. A new media composition can be created from the saved XML file by calling LoadAsync.

To render a media composition as a video file so that it can be played back by standard media players, use the RenderToFileAsync method.