public static class SourceDescription.Builder extends Object
SourceDescription
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SourceDescription.Builder |
ads(AdDescription... ads)
Sets the ads of the
SourceDescription . |
SourceDescription.Builder |
ads(String... ads)
Sets the ads of the
SourceDescription . |
SourceDescription.Builder |
analytics(AnalyticsDescription... analytics)
Sets the analytics of the
SourceDescription . |
SourceDescription |
build()
Builds the SourceDescription.
|
SourceDescription.Builder |
metadata(MetadataDescription metadata)
Sets the metadata of the SourceDescription.
|
SourceDescription.Builder |
poster(String poster)
Sets the poster image of the
SourceDescription . |
static SourceDescription.Builder |
sourceDescription()
Creates a builder for a default source description.
|
static SourceDescription.Builder |
sourceDescription(String... sources)
Creates a builder for a source description using one or more source URLs.
|
static SourceDescription.Builder |
sourceDescription(TypedSource... sources)
Creates a builder for a source description using one or more
TypedSource s. |
static SourceDescription.Builder |
sourceDescription(VerizonMediaSource... sources)
Creates a builder for a source description using one or more
VerizonMediaSource s. |
SourceDescription.Builder |
sources(String... sources)
Sets the sources of the
SourceDescription . |
SourceDescription.Builder |
sources(TypedSource... sources)
Sets the sources of the
SourceDescription . |
SourceDescription.Builder |
textTracks(String... textTracks)
Sets the text tracks of the
SourceDescription . |
SourceDescription.Builder |
textTracks(TextTrackDescription... textTracks)
Sets the text tracks of the
SourceDescription . |
SourceDescription.Builder |
timeServer(String timeServer)
Sets the URL of a time server used by the player to synchronise the time in DASH sources.
|
SourceDescription.Builder |
vrConfiguration(VRConfiguration vrConfiguration)
Sets the VR configuration of the
SourceDescription . |
public static SourceDescription.Builder sourceDescription()
- This configuration does not contain any sources.
public static SourceDescription.Builder sourceDescription(String... sources)
sources
- One or more source URLs. (NonNull)public static SourceDescription.Builder sourceDescription(TypedSource... sources)
TypedSource
s.sources
- One or more TypedSources. (NonNull)public static SourceDescription.Builder sourceDescription(VerizonMediaSource... sources)
VerizonMediaSource
s.sources
- One or more VerizonMediaSources. (NonNull)public SourceDescription.Builder sources(String... sources)
SourceDescription
.sources
- One or more source URLs. (NonNull)public SourceDescription.Builder sources(TypedSource... sources)
SourceDescription
.sources
- One or more TypedSources. (NonNull)public SourceDescription.Builder ads(AdDescription... ads)
SourceDescription
.ads
- One or more AdDescriptions. (NonNull)public SourceDescription.Builder ads(String... ads)
SourceDescription
.ads
- One or more source URIs of the ad. (NonNull)public SourceDescription.Builder textTracks(TextTrackDescription... textTracks)
SourceDescription
.textTracks
- One or more TextTrackDescription
s. (NonNull)public SourceDescription.Builder textTracks(String... textTracks)
SourceDescription
.textTracks
- One or more source URIs of the text tracks. (NonNull)public SourceDescription.Builder analytics(AnalyticsDescription... analytics)
SourceDescription
.analytics
- One or more AnalyticsDescription
s. (NonNull)- All valid and supported analytics descriptions will make sure the matching analytics integrations are configured.
public SourceDescription.Builder vrConfiguration(VRConfiguration vrConfiguration)
SourceDescription
.vrConfiguration
- The VRConfiguration
. (NonNull)public SourceDescription.Builder poster(String poster)
SourceDescription
.poster
- The URI of the posted image. (NonNull)public SourceDescription.Builder metadata(MetadataDescription metadata)
metadata
- The MetadataDescription
. (NonNullpublic SourceDescription.Builder timeServer(String timeServer)
timeServer
- The URL of a time server. (Nullable)- 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 useTypedSource.Builder.timeServer(String)
.
public SourceDescription build()