Table of Contents

Class SpliceEventArgs

Namespace
VisioForge.Core.Types.X.Events
Assembly
VisioForge.Core.dll

A SCTE-35 splice information section read from an MPEG-TS stream.

public class SpliceEventArgs : EventArgs

Inheritance

Inherited Members

Remarks

The fields below are decoded for VisioForge.Core.Types.X.Events.SpliceCommandType.Insert and VisioForge.Core.Types.X.Events.SpliceCommandType.TimeSignal; for any other command, and for the descriptors (segmentation, avail, ...), read VisioForge.Core.Types.X.Events.SpliceEventArgs.Section, which holds the whole section.

Constructors

SpliceEventArgs(byte[])

Initializes a new instance of the VisioForge.Core.Types.X.Events.SpliceEventArgs class.

public SpliceEventArgs(byte[] section)

Parameters

section byte[]

The complete splice_info_section.

Properties

AutoReturn

Gets a value indicating whether the break ends on its own when VisioForge.Core.Types.X.Events.SpliceEventArgs.BreakDuration runs out.

public bool AutoReturn { get; }

Property Value

bool

BreakDuration

Gets the break duration of a splice_insert, or null when none is set.

public TimeSpan? BreakDuration { get; }

Property Value

TimeSpan?

Cancel

Gets a value indicating whether a splice_insert cancels a previously sent event.

public bool Cancel { get; }

Property Value

bool

CommandType

Gets the splice command type; not decoded, and left at VisioForge.Core.Types.X.Events.SpliceCommandType.Null, when VisioForge.Core.Types.X.Events.SpliceEventArgs.Encrypted is set.

public SpliceCommandType CommandType { get; }

Property Value

SpliceCommandType

Encrypted

Gets a value indicating whether the splice command is encrypted. When it is, only VisioForge.Core.Types.X.Events.SpliceEventArgs.Section and VisioForge.Core.Types.X.Events.SpliceEventArgs.PtsAdjustment are filled in, and VisioForge.Core.Types.X.Events.SpliceEventArgs.CommandType is not decoded: check this before reading it.

public bool Encrypted { get; }

Property Value

bool

EventId

Gets the splice_event_id of a splice_insert, or null for any other command.

public uint? EventId { get; }

Property Value

uint?

Immediate

Gets a value indicating whether a splice_insert takes effect immediately rather than at a time.

public bool Immediate { get; }

Property Value

bool

OutOfNetwork

Gets a value indicating whether a splice_insert leaves the network feed (an ad break starts). false means the splice returns to the network feed.

public bool OutOfNetwork { get; }

Property Value

bool

PtsAdjustment

Gets the pts_adjustment field, in 90 kHz ticks.

public ulong PtsAdjustment { get; }

Property Value

ulong

PtsTime

Gets the splice time in the stream's 90 kHz PTS domain, pts_adjustment applied, or null when the command carries no time.

public ulong? PtsTime { get; }

Property Value

ulong?

RunningTime

Gets the splice time as pipeline running time - the time base of buffer timestamps and of the inserting MPEGTSSinkBlock methods - or null when the demuxer could not map it.

public TimeSpan? RunningTime { get; }

Property Value

TimeSpan?

Section

Gets the complete splice_info_section, from table_id (0xFC) to CRC_32, as carried in the stream.

public byte[] Section { get; }

Property Value

byte[]