Class SourceDescription.Builder
-
- All Implemented Interfaces:
public class SourceDescription.Builder
The builder for SourceDescription.
-
-
Constructor Summary
Constructors Constructor Description SourceDescription.Builder(Array<String> sources)
Creates a builder for a source description using one or more source URLs. SourceDescription.Builder(Array<TypedSource> sources)
Creates a builder for a source description using one or more TypedSources.
-
Method Summary
Modifier and Type Method Description SourceDescription.Builder
ads(@NonNull() Array<AdDescription> ads)
Sets the ads of the SourceDescription. SourceDescription.Builder
textTracks(@NonNull() Array<TextTrackDescription> textTracks)
Sets the text tracks of the SourceDescription. SourceDescription.Builder
textTracks(@NonNull() Array<String> textTracks)
Sets the text tracks of the SourceDescription. SourceDescription.Builder
poster(@NonNull() String poster)
Sets the poster image of the SourceDescription. SourceDescription.Builder
metadata(@NonNull() MetadataDescription metadata)
Sets the metadata of the SourceDescription. SourceDescription.Builder
timeServer(@Nullable() String timeServer)
Sets the URL of a time server used by the player to synchronise the time in DASH sources. SourceDescription
build()
Builds the SourceDescription. -
-
Constructor Detail
-
SourceDescription.Builder
SourceDescription.Builder(Array<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(Array<TypedSource> sources)
Creates a builder for a source description using one or more TypedSources.- Parameters:
sources
- One or more TypedSources.
-
-
Method Detail
-
ads
@NonNull() SourceDescription.Builder ads(@NonNull() Array<AdDescription> ads)
Sets the ads of the SourceDescription.
- Parameters:
ads
- One or more AdDescriptions.
-
textTracks
@NonNull() SourceDescription.Builder textTracks(@NonNull() Array<TextTrackDescription> textTracks)
Sets the text tracks of the SourceDescription.
- Parameters:
textTracks
- One or more TextTrackDescriptions.
-
textTracks
@NonNull() SourceDescription.Builder textTracks(@NonNull() Array<String> textTracks)
Sets the text tracks of the SourceDescription.
- Parameters:
textTracks
- One or more source URIs of the text tracks.
-
poster
@NonNull() SourceDescription.Builder poster(@NonNull() String poster)
Sets the poster image of the SourceDescription.
- Parameters:
poster
- The URI of the posted image.
-
metadata
@NonNull() SourceDescription.Builder metadata(@NonNull() MetadataDescription metadata)
Sets the metadata of the SourceDescription.
- Parameters:
metadata
- The MetadataDescription.
-
timeServer
@NonNull() SourceDescription.Builder timeServer(@Nullable() 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 timeServer.
- Parameters:
timeServer
- The URL of a time server.- Since:
v2.72.0
-
build
@NonNull() SourceDescription build()
Builds the SourceDescription.
-
-
-
-