Class MediaTailorSource.Builder
-
- All Implemented Interfaces:
public class MediaTailorSource.Builder extends TypedSource.Builder
The builder for a MediaTailor source.
- The final URL will have the following format: '/v1/session/
-
-
Field Summary
Fields Modifier and Type Field Description protected String
src
protected DRMConfiguration
drm
protected SourceType
type
protected Map<String, String>
headers
protected Double
liveOffset
protected SsaiDescription
ssai
protected Boolean
hlsDateRange
protected String
timeServer
protected Boolean
lowLatency
protected LatencyConfiguration
latencyConfiguration
protected HlsPlaybackConfiguration
hls
protected DashPlaybackConfiguration
dash
-
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 MediaTailorSource.Builder
adParams(@NonNull() Map<String, String> adParams)
Optional Map of ad parameters to perform client-side ad reporting. MediaTailorSource
build()
Builds the MediaTailor source. -
Methods inherited from class com.theoplayer.android.api.source.TypedSource.Builder
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
-
adParams
MediaTailorSource.Builder adParams(@NonNull() Map<String, String> adParams)
Optional Map of ad parameters to perform client-side ad reporting. For more information visit MediaTailor documentation.
- Parameters:
adParams
- the ad parameters.
-
build
@NonNull() MediaTailorSource build()
Builds the MediaTailor source.
-
-
-
-