Class SourceDescription.Builder
-
- All Implemented Interfaces:
public final class SourceDescription.BuilderThe builder for SourceDescription.
-
-
Constructor Summary
Constructors Constructor Description SourceDescription.Builder(String sources)Creates a builder for a source description using one or more source URLs. SourceDescription.Builder(TypedSource sources)Creates a builder for a source description using one or more TypedSources.
-
Method Summary
Modifier and Type Method Description final SourceDescription.Builderads(AdDescription ads)Sets the ads of the SourceDescription. final SourceDescription.BuildertextTracks(TextTrackDescription textTracks)Sets the text tracks of the SourceDescription. final SourceDescription.BuildertextTracks(String textTracks)Sets the text tracks of the SourceDescription. final SourceDescription.Builderposter(String poster)Sets the poster image of the SourceDescription. final SourceDescription.Buildermetadata(MetadataDescription metadata)Sets the metadata of the SourceDescription. final SourceDescription.BuildertimeServer(String timeServer)Sets the URL of a time server used by the player to synchronise the time in DASH sources. final SourceDescription.Builderabr(SourceAbrConfiguration abr)Sets the ABR configuration for the source being played. final SourceDescription.BuilderstreamType(StreamType streamType)Sets the stream type for the source. final SourceDescriptionbuild()Builds the SourceDescription. -
-
Constructor Detail
-
SourceDescription.Builder
SourceDescription.Builder(String sources)
Creates a builder for a source description using one or more source URLs.- Parameters:
sources- One or more source URLs.
-
SourceDescription.Builder
SourceDescription.Builder(TypedSource sources)
Creates a builder for a source description using one or more TypedSources.- Parameters:
sources- One or more TypedSources.
-
-
Method Detail
-
ads
final SourceDescription.Builder ads(AdDescription ads)
Sets the ads of the SourceDescription.
- Parameters:
ads- One or more AdDescriptions.
-
textTracks
final SourceDescription.Builder textTracks(TextTrackDescription textTracks)
Sets the text tracks of the SourceDescription.
- Parameters:
textTracks- One or more TextTrackDescriptions.
-
textTracks
final SourceDescription.Builder textTracks(String textTracks)
Sets the text tracks of the SourceDescription.
- Parameters:
textTracks- One or more source URIs of the text tracks.
-
poster
final SourceDescription.Builder poster(String poster)
Sets the poster image of the SourceDescription.
- Parameters:
poster- The URI of the poster image.
-
metadata
final SourceDescription.Builder metadata(MetadataDescription metadata)
Sets the metadata of the SourceDescription.
- Parameters:
metadata- The MetadataDescription.
-
timeServer
final SourceDescription.Builder timeServer(String timeServer)
Sets the URL of a time server used by the player to synchronise the time in DASH sources.
The time server should return time in ISO-8601 format.
Overrides the time server provided the DASH manifest's
<UTCTiming>.All sources will use the time server. Alternatively, for using it for a single source use TypedSource.timeServer.
- Parameters:
timeServer- The URL of a time server.- Since:
v2.72.0
-
abr
final SourceDescription.Builder abr(SourceAbrConfiguration abr)
Sets the ABR configuration for the source being played.
- Parameters:
abr- the ABR settings for this source.
-
streamType
final SourceDescription.Builder streamType(StreamType streamType)
Sets the stream type for the source.
- Parameters:
streamType- the stream type for this source.- Since:
v10.1.0
-
build
final SourceDescription build()
Builds the SourceDescription.
-
-
-
-