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 FileSegmentInheritance
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
startTimeTimeSpan?-
The start time of the segment. Set to
nullto start from the beginning. stopTimeTimeSpan?-
The stop time of the segment. Set to
nullto play until the end.
Properties
Duration
Gets the duration of the segment.
public TimeSpan? Duration { get; }Property Value
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
StopTime
Gets or sets the stop time of the segment used for playback.
public TimeSpan? StopTime { get; set; }