

Preview of the final video can be shown in MediaElement. Var mediaClip = await MediaClip.CreateFromFileAsync(file) var mediaComposition = new MediaComposition() MediaClip.TrimTimeFromEnd = TimeSpan.FromSeconds(1.5) Building compositionĪn object of MediaComposition class is used as a timeline. All clips, overlays and background audio tracks are appended here, while composition provides functions for preview and rendering a final movie. MediaClip.TrimTimeFromStart = TimeSpan.FromSeconds(3) var mediaClip = await MediaClip.CreateFromFileAsync(file)

Trimming is done by the simple set of two parameters: TrimTimeFromStart and TrimTimeFromEnd.

The editing namespace works with objects of MediaClip class, which can represent a single clip created from a video file, photo or a solid color.
