MediaComposition Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of media clips and background audio tracks.
public ref class MediaComposition sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MediaComposition final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class MediaComposition final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MediaComposition
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class MediaComposition
function MediaComposition()
Public NotInheritable Class MediaComposition
- Inheritance
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Media |
Initializes a new instance of the MediaComposition class. |
Background |
A collection of background audio tracks for playback in the media composition. |
Clips |
A collection of media clips for playback in the media composition. |
Duration |
The total playback time of the media composition. |
Overlay |
Gets the list of overlay layers for the media composition. |
User |
An associative collection for storing custom properties associated with the media composition. |
Clone() |
Creates a MediaComposition object that is identical to this instance. |
Create |
Create a new default media encoding profile which can be modified if necessary. |
Generate |
Creates a new MediaStreamSource. |
Generate |
Creates a new MediaStreamSource using the specified MediaEncodingProfile. |
Generate |
Creates a new MediaStreamSource used to preview the edited media. |
Get |
Asynchronously gets an image stream that represents a thumbnail of the media composition. |
Get |
Asynchronously gets a vector view of thumbnails of the media composition. |
Load |
Asynchronously loads a MediaComposition from a StorageFile. |
Render |
Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference and encoding profile. |
Render |
Asynchronously renders the MediaComposition to a specified file using the indicated media trimming preference. |
Render |
Asynchronously renders the MediaComposition to the specified file. |
Save |
Asynchronously serializes the MediaComposition to disk so that it can be loaded and modified in the future. |
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |