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 : EventArgsInheritance
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
sectionbyte[]-
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
BreakDuration
Gets the break duration of a splice_insert, or null when none is set.
public TimeSpan? BreakDuration { get; }Property Value
Cancel
Gets a value indicating whether a splice_insert cancels a previously sent event.
public bool Cancel { get; }Property Value
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
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
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
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
PtsAdjustment
Gets the pts_adjustment field, in 90 kHz ticks.
public ulong PtsAdjustment { get; }Property Value
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
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
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[]