Share via


MediaComposition.SaveAsync(IStorageFile) Method

Definition

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

public:
 virtual IAsyncAction ^ SaveAsync(IStorageFile ^ file) = SaveAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SaveAsync(IStorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SaveAsync(IStorageFile file);
function saveAsync(file)
Public Function SaveAsync (file As IStorageFile) As IAsyncAction

Parameters

file
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.

Attributes

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.

Applies to