-
- All Implemented Interfaces:
public class TypedSource
The Typed Source API.
- 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
TypedSource.Builder
The builder for TypedSource.
-
Field Summary
Fields Modifier and Type Field Description private final String
src
private final DRMConfiguration
drm
private final SourceType
type
private final Double
liveOffset
private final SsaiDescription
ssai
private final String
timeServer
private final HlsPlaybackConfiguration
hls
private final DashPlaybackConfiguration
dash
-
Method Summary
Modifier and Type Method Description String
getSrc()
The source URL of the manifest or video file to be played. DRMConfiguration
getDrm()
The DRMConfiguration which specifies valid DRM parameters for this source. SourceType
getType()
The MIME type of the source. Double
getLiveOffset()
The live point from the end of the manifest, in seconds. SsaiDescription
getSsai()
The configuration of the selected server-side ad insertion integrations. String
getTimeServer()
Returns the URL of the time server. HlsPlaybackConfiguration
getHls()
Returns the configuration for controlling playback of an HLS stream. DashPlaybackConfiguration
getDash()
Returns the configuration for controlling playback of an DASH stream. boolean
isNativeRenderingEnabled()
Returns whether native rendering is enabled. boolean
isNativeUiRenderingEnabled()
Returns whether native ui 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
equals(Object o)
int
hashCode()
-
-
Method Detail
-
getSrc
@NonNull() String getSrc()
The source URL of the manifest or video file to be played. (NonNull)
-
getDrm
@Nullable() DRMConfiguration getDrm()
The DRMConfiguration which specifies valid DRM parameters for this source.
-
getType
@Nullable() SourceType getType()
The MIME type of the source.
- For all possibilities, see SourceType.
Example:
- 'application/dash+xml' for MPEG-DASH sources.
- 'video/mp4' for single MP4 files.
-
getLiveOffset
@Nullable() Double getLiveOffset()
The live point from the end of the manifest, in seconds.
- Will return null if the live point offset is 3 target durations.
-
getSsai
@Nullable() SsaiDescription getSsai()
The configuration of the selected server-side ad insertion integrations.
-
getTimeServer
@Nullable() String getTimeServer()
Returns the URL of the time server. (Nullable)
- The time server should return time in ISO-8601 format.
- Only applies to the current source.
-
getHls
@Nullable() HlsPlaybackConfiguration getHls()
Returns the configuration for controlling playback of an HLS stream.
- Can be null if this property is not set.
-
getDash
@Nullable() DashPlaybackConfiguration getDash()
Returns the configuration for controlling playback of an DASH stream.
- Can be null if this property is not set.
-
isNativeRenderingEnabled
boolean isNativeRenderingEnabled()
Returns whether native rendering is enabled.
- In this case the ExoPlayer pipeline will be used.
-
isNativeUiRenderingEnabled
boolean isNativeUiRenderingEnabled()
Returns whether native ui rendering is enabled.
- In this case the native ui elements will be used.
-
isHlsDateRange
@Nullable() Boolean isHlsDateRange()
Returns whether the logic to expose date ranges parsed from HLS manifests is enabled. (Nullable)
- Can be null if this property is not set.
- If not set, the internal behaviour is similar to 'false'.
-
isLowLatency
@Nullable() Boolean isLowLatency()
Returns whether the source should be played in the low-latency-mode of the player. (Nullable)
- Can be null if this property is not set.
- Only applicable to live content.
-
hashCode
int hashCode()
-
-
-
-