Table of Contents

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 : EventArgs

Inheritance

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

fragmentIndex uint

The zero-based fragment index.

fileName string

The full path of the segment file.

runningTime TimeSpan

The pipeline running time at the event.

fragmentOffset TimeSpan?

The running time of the segment start, or null.

fragmentDuration TimeSpan?

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

string

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

TimeSpan?

FragmentIndex

Gets the zero-based index of the segment fragment.

public uint FragmentIndex { get; }

Property Value

uint

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

TimeSpan?

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; }

Property Value

TimeSpan