MediaComposition.LoadAsync(StorageFile) Method

Definition

Asynchronously loads a MediaComposition from a StorageFile.

public:
 static IAsyncOperation<MediaComposition ^> ^ LoadAsync(StorageFile ^ file);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<MediaComposition> LoadAsync(StorageFile const& file);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<MediaComposition> LoadAsync(StorageFile file);
function loadAsync(file)
Public Shared Function LoadAsync (file As StorageFile) As IAsyncOperation(Of MediaComposition)

Parameters

file
StorageFile

The file from which to load the MediaComposition.

Returns

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

Attributes

Remarks

This method allows you to load a composition from an XML file you saved with a previous call to SaveAsync. Once you have loaded the composition, you can make changes to the composition and either save it again or render it to a video file by calling RenderToFileAsync.

Applies to