Class SegmentSinkFileEventArgs
- Namespace
- VisioForge.Core.Types.X.Sinks
- Assembly
- VisioForge.Core.dll
Provides data for a split-recording segment file event (a new segment file was opened, or a
segment file was finished and closed). Raised by the segmented sink/output blocks
(MP4SinkBlock, MPEGTSSinkBlock, MP4OutputBlock) when configured with
split settings (VisioForge.Core.Types.X.Sinks.MP4SplitSinkSettings / VisioForge.Core.Types.X.Sinks.MPEGTSSplitSinkSettings).
public class SegmentSinkFileEventArgs : EventArgsInheritance
Inherited Members
Constructors
SegmentSinkFileEventArgs(uint, string, TimeSpan, TimeSpan?, TimeSpan?)
Initializes a new instance of the VisioForge.Core.Types.X.Sinks.SegmentSinkFileEventArgs class.
public SegmentSinkFileEventArgs(uint fragmentIndex, string fileName, TimeSpan runningTime, TimeSpan? fragmentOffset, TimeSpan? fragmentDuration)Parameters
fragmentIndexuint-
The zero-based fragment index.
fileNamestring-
The full path of the segment file.
runningTimeTimeSpan-
The pipeline running time at the event.
fragmentOffsetTimeSpan?-
The running time of the segment start, or
null. fragmentDurationTimeSpan?-
The duration of the segment, or
null.
Properties
FileName
Gets the full path of the segment file the event refers to.
public string FileName { get; }Property Value
FragmentDuration
Gets the duration of the segment, or null when not reported (the underlying
element reports this only on the segment-closed event). When both
VisioForge.Core.Types.X.Sinks.SegmentSinkFileEventArgs.FragmentOffset and VisioForge.Core.Types.X.Sinks.SegmentSinkFileEventArgs.FragmentDuration are available, the
segment end running time is FragmentOffset + FragmentDuration.
public TimeSpan? FragmentDuration { get; }Property Value
FragmentIndex
Gets the zero-based index of the segment fragment.
public uint FragmentIndex { get; }Property Value
FragmentOffset
Gets the running time of the start of the segment, or null when not reported
(the underlying element reports this only on the segment-closed event).
public TimeSpan? FragmentOffset { get; }Property Value
RunningTime
Gets the pipeline running time at the moment the segment was opened or closed. This is relative to the start of the pipeline, not wall-clock time.
public TimeSpan RunningTime { get; }