Class HlsInterstitial
java.lang.Object
com.castlabs.android.player.models.hls.HlsInterstitial
Represents an HLS interstitial content that can be inserted into the main content stream.
This class contains information about the interstitial content including its URL, duration,
and timing information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an asset within an HLS interstitial. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe cue point identifier for this interstitialfinal intThe duration of the interstitial in millisecondsfinal StringThe unique identifier for this interstitialfinal intThe offset in milliseconds where playback should resume after the interstitialfinal longThe start offset of the interstitial relative to the start of the playlist in microsecondsfinal UriThe URL of the interstitial content -
Constructor Summary
ConstructorsConstructorDescriptionHlsInterstitial(Uri url, String id, String cue, int duration, int resumeOffset, long startOffsetUs) Creates a new HLS interstitial with the specified parameters. -
Method Summary
-
Field Details
-
url
The URL of the interstitial content -
id
The unique identifier for this interstitial -
cue
The cue point identifier for this interstitial -
duration
public final int durationThe duration of the interstitial in milliseconds -
resumeOffset
public final int resumeOffsetThe offset in milliseconds where playback should resume after the interstitial -
startOffsetUs
public final long startOffsetUsThe start offset of the interstitial relative to the start of the playlist in microseconds
-
-
Constructor Details
-
HlsInterstitial
public HlsInterstitial(Uri url, String id, String cue, int duration, int resumeOffset, long startOffsetUs) Creates a new HLS interstitial with the specified parameters.- Parameters:
url- The URL of the interstitial contentid- The unique identifier for this interstitialcue- The cue point identifierduration- The duration in millisecondsresumeOffset- The resume offset in millisecondsstartOffsetUs- The start offset in microseconds relative to playlist start
-