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 Double
liveOffset
protected SsaiDescription
ssai
protected Boolean
hlsDateRange
protected String
timeServer
protected Boolean
lowLatency
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. -
-
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.
-
-
-
-