public class TypedSource extends Object
- This represents a media resource characterized by a URL to the resource and optionally information about the resource. - This optional information can be DRM parameters for that specific source.
Modifier and Type | Class and Description |
---|---|
static class |
TypedSource.Builder
The builder for TypedSource.
|
Modifier | Constructor and Description |
---|---|
|
TypedSource(String src)
Deprecated.
Superseded by
TypedSource.Builder , since v2.69.0
Creates a simple TypedSource object containing the given URL as source. |
|
TypedSource(String src,
DRMConfiguration drm,
SourceType type)
Deprecated.
Superseded by
TypedSource.Builder , since v2.69.0
Creates a TypedSource object consisting of a source URL, a DRMConfiguration and a SourceType. |
protected |
TypedSource(String src,
DRMConfiguration drm,
SourceType type,
Double liveOffset,
boolean experimentalRendering,
boolean nativeUiRendering,
SsaiDescription ssai,
Boolean hlsDateRange,
String timeServer,
Boolean lowLatency) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
DRMConfiguration |
getDrm()
The
DRMConfiguration which specifies valid DRM parameters for this source. |
Double |
getLiveOffset()
The live point from the end of the manifest, in seconds.
|
String |
getSrc()
The source URL of the manifest or video file to be played.
|
SsaiDescription |
getSsai()
The configuration of the selected server-side ad insertion integrations.
|
String |
getTimeServer()
Returns the URL of the time server.
|
SourceType |
getType()
The MIME type of the source.
|
int |
hashCode() |
boolean |
isExperimentalRenderingEnabled()
Deprecated.
Superseded by
isNativeRenderingEnabled() .
Returns whether experimental rendering is enabled. |
Boolean |
isHlsDateRange()
Returns whether the logic to expose date ranges parsed from HLS manifests is enabled.
|
Boolean |
isLowLatency()
Returns whether the source should be played in the low-latency-mode of the player.
|
boolean |
isNativeRenderingEnabled()
Returns whether native rendering is enabled.
|
boolean |
isNativeUiRenderingEnabled()
Returns whether native ui rendering is enabled.
|
protected static TypedSource |
replaceSource(TypedSource originalSource,
String sourceUrl) |
protected TypedSource(String src, DRMConfiguration drm, SourceType type, Double liveOffset, boolean experimentalRendering, boolean nativeUiRendering, SsaiDescription ssai, Boolean hlsDateRange, String timeServer, Boolean lowLatency)
@Deprecated public TypedSource(String src)
TypedSource.Builder
, since v2.69.0
src
- A String representing the source URL. (NonNull)NullPointerException
- Will be thrown when src is null.@Deprecated public TypedSource(String src, DRMConfiguration drm, SourceType type)
TypedSource.Builder
, since v2.69.0
src
- A String representing the source URL. (NonNull)drm
- A DRMConfiguration
representing the DRM configuration of the source. (Nullable)type
- A SourceType
representing the type of the source. (Nullable)NullPointerException
- Will be thrown when src is null.public String getSrc()
public DRMConfiguration getDrm()
DRMConfiguration
which specifies valid DRM parameters for this source.DRMConfiguration
. (Nullable)public SourceType getType()
SourceType
. (Nullable)
- For all possibilities, see SourceType
.
- 'application/dash+xml' for MPEG-DASH sources. - 'video/mp4' for single MP4 files.
public Double getLiveOffset()
- Will return null if the live point offset is 3 target durations.
public SsaiDescription getSsai()
public boolean isExperimentalRenderingEnabled()
isNativeRenderingEnabled()
.
Returns whether experimental rendering is enabled.- In this case the ExoPlayer pipeline will be used.
public boolean isNativeRenderingEnabled()
- In this case the ExoPlayer pipeline will be used.
public boolean isNativeUiRenderingEnabled()
- In this case the native ui elements will be used.
public Boolean isHlsDateRange()
- Can be null if this property is not set. - If not set, the internal behaviour is similar to 'false'.
public String getTimeServer()
- The time server should return time in ISO-8601 format. - Only applies to the current source.
public Boolean isLowLatency()
- Can be null if this property is not set. - Only applicable to live content.
protected static TypedSource replaceSource(TypedSource originalSource, String sourceUrl)