public class

AdBreakClipInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.cast.AdBreakClipInfo

Class Overview

A class that aggregates information about an ad break clip.

Summary

Nested Classes
class AdBreakClipInfo.Builder A builder for AdBreakClipInfo
Constants
long AD_BREAK_CLIP_NOT_SKIPPABLE
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
boolean equals(Object other)
String getClickThroughUrl()
Returns this clip's click through URL.
String getContentId()
Returns this clip's content ID.
String getContentUrl()
Returns this clip's content URL.
JSONObject getCustomData()
Returns this clip's custom data.
long getDurationInMs()
Returns this clip's duration in milliseconds.
String getHlsSegmentFormat()
Returns HlsSegmentFormat of the ad break clip, or empty String if not set.
String getId()
Returns this clip's ID.
String getImageUrl()
Returns this clip's image URL.
String getMimeType()
Returns this clip's mime type.
String getTitle()
Returns this clip's title.
long getWhenSkippableInMs()
Returns the time in milliseconds when this break clip becomes skippable.
int hashCode()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final long AD_BREAK_CLIP_NOT_SKIPPABLE

Constant Value: -1 (0xffffffffffffffff)

Public Methods

public boolean equals (Object other)

Parameters
other Object
Returns
boolean

public String getClickThroughUrl ()

Returns this clip's click through URL.

Returns
String

public String getContentId ()

Returns this clip's content ID. Typically the URL of the break clip (playing on the receiver).

Returns
String

public String getContentUrl ()

Returns this clip's content URL. If contentUrl is provided, the receiver will use it as the content's URL, otherwise contentId will be used to load the clip on the receiver.

Returns
String

public JSONObject getCustomData ()

Returns this clip's custom data.

Returns
JSONObject

public long getDurationInMs ()

Returns this clip's duration in milliseconds.

Returns
long

public String getHlsSegmentFormat ()

Returns HlsSegmentFormat of the ad break clip, or empty String if not set.

Returns
String

public String getId ()

Returns this clip's ID.

Returns
String

public String getImageUrl ()

Returns this clip's image URL.

Returns
String

public String getMimeType ()

Returns this clip's mime type.

Returns
String

public String getTitle ()

Returns this clip's title.

Returns
String

public long getWhenSkippableInMs ()

Returns the time in milliseconds when this break clip becomes skippable. A value of 5000 means that end user can skip this break clip after 5 seconds. A value of AD_BREAK_CLIP_NOT_SKIPPABLE means that current break clip is not skippable.

Returns
long

public int hashCode ()

Returns
int

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int