CastBreakClips class

Represents a break clip (e.g. a clip of an ad during an ad break)

Constructors

CastBreakClips.new({String? clickThroughUrl, String? contentId, String? contentType, String? contentUrl, Map<String, dynamic>? customData, Duration? duration, CastHlsSegmentFormat? hlsSegmentFormat, required String id, String? posterUrl, String? title, required VastAdsRequest vastAdsRequest, Duration? whenSkippable})
Creates a new CastBreakClips instance.
CastBreakClips.fromJson(String source)
Creates a CastBreakClips from a JSON string.
factory
CastBreakClips.fromMap(Map<String, dynamic> map)
Creates a CastBreakClips instance from a map.
factory

Properties

clickThroughUrl String?
URL of the page that the sender will display, when the end user clicks the link on the sender UI, while the receiver is playing this clip.
final
contentId String?
The URL or content ID of the break media playing on the receiver.
final
contentType String?
The content MIME type.
final
contentUrl String?
Optional break media URL, to allow using contentId for the real ID. If contentUrl is provided, it will be used as the media URL, otherwise the contentId will be used as the media URL.
final
customData Map<String, dynamic>?
Application-specific break clip data.
final
duration Duration?
Duration of a break clip in seconds.
final
hashCode int
The hash code for this object.
no setterinherited
hlsSegmentFormat CastHlsSegmentFormat?
The format of the HLS media segment.
final
id String
Unique ID of break clip.
final
posterUrl String?
URL of content that the sender will display while the receiver is playing this clip.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
title String?
Title of a break clip. Sender might display this on its screen, if provided.
final
vastAdsRequest VastAdsRequest
VAST ad request configuration. Used if contentId or contentUrl is not provided.
final
whenSkippable Duration?
The time in seconds when this break clip becomes skippable. 5 means that end user can skip this break clip after 5 seconds. If this field is not defined or is a negative value, it means that current break clip is not shippable.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Converts the CastBreakClips to a JSON string.
toMap() Map<String, dynamic>
Converts the break clip object to a map for serialization.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited