Class MediaTailorSource.Builder
-
- All Implemented Interfaces:
public final class MediaTailorSource.Builder extends TypedSource.Builder
The builder for a MediaTailor source.
The final URL will have the following format:
<baseUri>/v1/session/<accountId>/<originId>/<assetId>
-
-
Field Summary
Fields Modifier and Type Field Description protected DRMConfigurationdrmprotected SourceTypetypeprotected Map<String, String>headersprotected DoubleliveOffsetprotected SsaiDescriptionssaiprotected BooleanhlsDateRangeprotected StringtimeServerprotected BooleanlowLatencyprotected LatencyConfigurationlatencyConfigurationprotected HlsPlaybackConfigurationhlsprotected DashPlaybackConfigurationdashprotected CMCDTransmissionModecmcdTransmissionModeprotected Stringsrc
-
Constructor Summary
Constructors Constructor Description MediaTailorSource.Builder(String src)Creates a builder for a simple MediaTailor object containing the given URL as source.
-
Method Summary
Modifier and Type Method Description final <Error class: unknown class>adsParams(Map<String, String> adsParams)Optional Map of ad parameters to perform client-side ad reporting. MediaTailorSourcebuild()Builds the MediaTailor source. -
Methods inherited from class com.theoplayer.android.api.source.TypedSource.Builder
cmcdTransmissionMode, dash, drm, headers, hls, hlsDateRange, latencyConfiguration, liveOffset, lowLatency, ssai, timeServer, type -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MediaTailorSource.Builder
MediaTailorSource.Builder(String src)
Creates a builder for a simple MediaTailor object containing the given URL as source.- Parameters:
src- the source URL
-
-
Method Detail
-
adsParams
final <Error class: unknown class> adsParams(Map<String, String> adsParams)
Optional Map of ad parameters to perform client-side ad reporting. For more information visit MediaTailor documentation.
- Parameters:
adsParams- the ad parameters.
-
build
MediaTailorSource build()
Builds the MediaTailor source.
-
-
-
-