Table of Contents

Class FileSegment

Namespace
VisioForge.Core.Types.VideoEdit
Assembly
VisioForge.Core.dll

Represents a segment of a media file, defined by a start time and a stop time.

public class FileSegment

Inheritance

Inherited Members

Remarks

This class is used to select specific portions of video or audio files for playback or editing. It supports defining sub-clips without modifying the original source media.

Constructors

FileSegment(TimeSpan?, TimeSpan?)

Initializes a new instance of the VisioForge.Core.Types.VideoEdit.FileSegment class.

public FileSegment(TimeSpan? startTime, TimeSpan? stopTime)

Parameters

startTime TimeSpan?

The start time of the segment. Set to null to start from the beginning.

stopTime TimeSpan?

The stop time of the segment. Set to null to play until the end.

Properties

Duration

Gets the duration of the segment.

public TimeSpan? Duration { get; }

Property Value

TimeSpan?

Remarks

Calculated as VisioForge.Core.Types.VideoEdit.FileSegment.StopTime minus VisioForge.Core.Types.VideoEdit.FileSegment.StartTime. Returns null if either value is not set.

StartTime

Gets or sets the start time of the segment used for playback.

public TimeSpan? StartTime { get; set; }

Property Value

TimeSpan?

StopTime

Gets or sets the stop time of the segment used for playback.

public TimeSpan? StopTime { get; set; }

Property Value

TimeSpan?