MediaClip MediaClip MediaClip MediaClip MediaClip Class

Definition

Represents a single media object.

public : sealed class MediaClip : IMediaClip
struct winrt::Windows::Media::Editing::MediaClip : IMediaClip
public sealed class MediaClip : IMediaClip
Public NotInheritable Class MediaClip Implements IMediaClip
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

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 AudioEffectDefinitions AudioEffectDefinitions AudioEffectDefinitions AudioEffectDefinitions

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

EmbeddedAudioTracks EmbeddedAudioTracks EmbeddedAudioTracks EmbeddedAudioTracks EmbeddedAudioTracks

The list of embedded audio tracks in this media clip.

EndTimeInComposition EndTimeInComposition EndTimeInComposition EndTimeInComposition EndTimeInComposition

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

OriginalDuration OriginalDuration OriginalDuration OriginalDuration OriginalDuration

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

SelectedEmbeddedAudioTrackIndex SelectedEmbeddedAudioTrackIndex SelectedEmbeddedAudioTrackIndex SelectedEmbeddedAudioTrackIndex SelectedEmbeddedAudioTrackIndex

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

StartTimeInComposition StartTimeInComposition StartTimeInComposition StartTimeInComposition StartTimeInComposition

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

TrimmedDuration TrimmedDuration TrimmedDuration TrimmedDuration TrimmedDuration

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

TrimTimeFromEnd TrimTimeFromEnd TrimTimeFromEnd TrimTimeFromEnd TrimTimeFromEnd

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

TrimTimeFromStart TrimTimeFromStart TrimTimeFromStart TrimTimeFromStart TrimTimeFromStart

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

UserData UserData UserData UserData UserData

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

VideoEffectDefinitions VideoEffectDefinitions VideoEffectDefinitions VideoEffectDefinitions VideoEffectDefinitions

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

Volume Volume Volume Volume Volume

Gets or sets the volume of the media clip.

Methods

Clone() Clone() Clone() Clone() Clone()

Creates a MediaClip object that is identical to this instance.

CreateFromColor(Color, TimeSpan) CreateFromColor(Color, TimeSpan) CreateFromColor(Color, TimeSpan) CreateFromColor(Color, TimeSpan) 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) CreateFromFileAsync(IStorageFile) CreateFromFileAsync(IStorageFile) CreateFromFileAsync(IStorageFile) CreateFromFileAsync(IStorageFile)

Creates a video clip from a video file.

CreateFromImageFileAsync(IStorageFile, TimeSpan) CreateFromImageFileAsync(IStorageFile, TimeSpan) CreateFromImageFileAsync(IStorageFile, TimeSpan) CreateFromImageFileAsync(IStorageFile, TimeSpan) CreateFromImageFileAsync(IStorageFile, TimeSpan)

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

CreateFromSurface(IDirect3DSurface, TimeSpan) CreateFromSurface(IDirect3DSurface, TimeSpan) CreateFromSurface(IDirect3DSurface, TimeSpan) CreateFromSurface(IDirect3DSurface, TimeSpan) CreateFromSurface(IDirect3DSurface, TimeSpan)

Creates a video clip from a Microsoft Direct3D surface.

GetVideoEncodingProperties() GetVideoEncodingProperties() GetVideoEncodingProperties() GetVideoEncodingProperties() GetVideoEncodingProperties()

Gets the VideoEncodingProperties for the media clip.

See Also