SpliceInsertCommand


@UnstableApi
public final class SpliceInsertCommand extends SpliceCommand


Represents a splice insert command defined in SCTE35, Section 9.3.3.

Summary

Nested types

Holds splicing information for specific splice insert command components.

Public fields

final boolean

If breakDurationUs is not TIME_UNSET, defines whether breakDurationUs should be used to know when to return to the network feed.

final int

Holds the value of avail_num as defined in SCTE35, Section 9.3.3.

final int

Holds the value of avails_expected as defined in SCTE35, Section 9.3.3.

final long

The duration of the splice in microseconds, or TIME_UNSET if no duration is present.

final List<SpliceInsertCommand.ComponentSplice>

If programSpliceFlag is false, a non-empty list containing the s.

final boolean

If true, the splice event is an opportunity to exit from the network feed.

final boolean

Whether the splice mode is program splice mode, whereby all PIDs/components are to be spliced.

final long

Equivalent to programSplicePts but in the playback timebase.

final long

If programSpliceFlag is true, the PTS at which the program splice should occur.

final boolean

True if the event with id spliceEventId has been canceled.

final long

The splice event id.

final boolean

Whether splicing should be done at the nearest opportunity.

final int

The unique program id as defined in SCTE35, Section 9.3.3.

Public methods

String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

void

Updates the MediaMetadata.Builder with the type-specific values stored in this Entry.

From android.os.Parcelable
abstract int
From androidx.media3.extractor.metadata.scte35.SpliceCommand

Constants

CREATOR

public static final Parcelable.Creator<SpliceInsertCommandCREATOR

Public fields

autoReturn

public final boolean autoReturn

If breakDurationUs is not TIME_UNSET, defines whether breakDurationUs should be used to know when to return to the network feed. If breakDurationUs is TIME_UNSET, the value is undefined.

availNum

public final int availNum

Holds the value of avail_num as defined in SCTE35, Section 9.3.3.

availsExpected

public final int availsExpected

Holds the value of avails_expected as defined in SCTE35, Section 9.3.3.

breakDurationUs

public final long breakDurationUs

The duration of the splice in microseconds, or TIME_UNSET if no duration is present.

componentSpliceList

public final List<SpliceInsertCommand.ComponentSplicecomponentSpliceList

If programSpliceFlag is false, a non-empty list containing the s. Otherwise, an empty list.

outOfNetworkIndicator

public final boolean outOfNetworkIndicator

If true, the splice event is an opportunity to exit from the network feed. If false, indicates an opportunity to return to the network feed.

programSpliceFlag

public final boolean programSpliceFlag

Whether the splice mode is program splice mode, whereby all PIDs/components are to be spliced. If false, splicing is done per PID/component.

programSplicePlaybackPositionUs

public final long programSplicePlaybackPositionUs

Equivalent to programSplicePts but in the playback timebase.

programSplicePts

public final long programSplicePts

If programSpliceFlag is true, the PTS at which the program splice should occur. TIME_UNSET otherwise.

spliceEventCancelIndicator

public final boolean spliceEventCancelIndicator

True if the event with id spliceEventId has been canceled.

spliceEventId

public final long spliceEventId

The splice event id.

spliceImmediateFlag

public final boolean spliceImmediateFlag

Whether splicing should be done at the nearest opportunity. If false, splicing should be done at the moment indicated by programSplicePlaybackPositionUs or componentSplicePlaybackPositionUs, depending on programSpliceFlag.

uniqueProgramId

public final int uniqueProgramId

The unique program id as defined in SCTE35, Section 9.3.3.

Public methods

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)