Class SourceDescription.Builder
-
- All Implemented Interfaces:
public class SourceDescription.BuilderThe 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.Builderads(@NonNull() Array<AdDescription> ads)Sets the ads of the SourceDescription. SourceDescription.BuildertextTracks(@NonNull() Array<TextTrackDescription> textTracks)Sets the text tracks of the SourceDescription. SourceDescription.BuildertextTracks(@NonNull() Array<String> textTracks)Sets the text tracks of the SourceDescription. SourceDescription.Builderposter(@NonNull() String poster)Sets the poster image of the SourceDescription. SourceDescription.Buildermetadata(@NonNull() MetadataDescription metadata)Sets the metadata of the SourceDescription. SourceDescription.BuildertimeServer(@Nullable() String timeServer)Sets the URL of a time server used by the player to synchronise the time in DASH sources. SourceDescriptionbuild()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.
-
-
-
-