MediaClip Class

Definition

Represents a single media object.

public ref class MediaClip sealed
/// [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 MediaClip final
[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 MediaClip
Public NotInheritable Class MediaClip
Inheritance
Object Platform::Object IInspectable MediaClip
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Add media clips to a composition by adding them to a MediaComposition object's Clips collection.

For how-to guidance on adding media editing to your app, see Media compositions and editing.

Properties

AudioEffectDefinitions

Gets the list of audio effect definitions for processing the media clip.

EmbeddedAudioTracks

The list of embedded audio tracks in this media clip.

EndTimeInComposition

The time when the media clip stops playing within a MediaComposition.

OriginalDuration

Original playback time of the media clip, without the effects of TrimTimeFromStart and TrimTimeFromEnd properties.

SelectedEmbeddedAudioTrackIndex

The index of the audio track within the media clip that is used for playback.

StartTimeInComposition

The time when the media clip starts playing within a MediaComposition.

TrimmedDuration

Duration of the media clip with TrimTimeFromStart and TrimTimeFromEnd applied to playback.

TrimTimeFromEnd

The amount of time to trim from the end of the media clip.

TrimTimeFromStart

The amount of time to trim from the beginning of the media clip.

UserData

An associative collection for storing custom properties associated with the media clip.

VideoEffectDefinitions

Gets the list of video effect definitions for processing the media clip.

Volume

Gets or sets the volume of the media clip.

Methods

Clone()

Creates a MediaClip object that is identical to this instance.

CreateFromColor(Color, TimeSpan)

Creates a solid color video clip that displays a single color for a specified length of time. Solid color video clips are typically used to create an explicit gap between video segments.

CreateFromFileAsync(IStorageFile)

Creates a video clip from a video file.

CreateFromImageFileAsync(IStorageFile, TimeSpan)

Creates a video clip that displays a single image for a specified length of time.

CreateFromSurface(IDirect3DSurface, TimeSpan)

Creates a video clip from a Microsoft Direct3D surface.

GetVideoEncodingProperties()

Gets the VideoEncodingProperties for the media clip.

Applies to

See also