Class ImaDaiSettings
java.lang.Object
com.jwplayer.pub.api.media.ads.dai.ImaDaiSettings
- All Implemented Interfaces:
android.os.Parcelable
IMA DAI settings for a stream
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionImaDaiSettings(String assetKey, ImaDaiSettings.StreamType streamType, String apiKey) Constructor for DAI settings for a Live StreamImaDaiSettings(String videoId, String cmsId, ImaDaiSettings.StreamType streamType, String apiKey) Constructor for DAI settings for a VOD Stream -
Method Summary
Modifier and TypeMethodDescriptionintgetCmsId()voidsetAdTagParameters(Map<String, String> mAdTagParameters) voidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
ImaDaiSettings
public ImaDaiSettings(@NonNull String videoId, @NonNull String cmsId, @NonNull ImaDaiSettings.StreamType streamType, @Nullable String apiKey) Constructor for DAI settings for a VOD Stream- Parameters:
videoId- Video ID for the video you would like to playcmsId- CMS ID for the video you would like to playstreamType- The type of stream (HLS or DASH)apiKey- DAI authentication key
-
ImaDaiSettings
public ImaDaiSettings(@NonNull String assetKey, @NonNull ImaDaiSettings.StreamType streamType, @Nullable String apiKey) Constructor for DAI settings for a Live Stream- Parameters:
assetKey- The asset key for the Live Stream you would like to playstreamType- The type of stream (HLS or DASH)apiKey- DAI authentication key
-
-
Method Details
-
getVideoId
- Returns:
- The video ID for the DAI stream to play
-
getCmsId
- Returns:
- The CMS ID for the DAI stream to play
-
getAssetKey
- Returns:
- The asset key for the DAI stream to play
-
getApiKey
- Returns:
- The DAI authentication key
-
getStreamType
- Returns:
- The type of stream (HLS or DASH)
-
getAdTagParameters
- Returns:
- The ad tag parameters on the DAI stream request that is override
-
setAdTagParameters
- Parameters:
mAdTagParameters- The ad tag parameters on the DAI stream request that is override
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-