Class SourceDescription.Builder
-
- All Implemented Interfaces:
public final class SourceDescription.Builder
The 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.Builder
ads(AdDescription ads)
Sets the ads of the SourceDescription. final SourceDescription.Builder
textTracks(TextTrackDescription textTracks)
Sets the text tracks of the SourceDescription. final SourceDescription.Builder
textTracks(String textTracks)
Sets the text tracks of the SourceDescription. final SourceDescription.Builder
poster(String poster)
Sets the poster image of the SourceDescription. final SourceDescription.Builder
metadata(MetadataDescription metadata)
Sets the metadata of the SourceDescription. final SourceDescription.Builder
timeServer(String timeServer)
Sets the URL of a time server used by the player to synchronise the time in DASH sources. final SourceDescription.Builder
abr(SourceAbrConfiguration abr)
Sets the ABR configuration for the source being played. final SourceDescription
build()
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 posted 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. See SourceAbrConfiguration
- Parameters:
abr
- the ABR settings for this source.
-
build
final SourceDescription build()
Builds the SourceDescription.
-
-
-
-