AI-generated Key Takeaways
-
GCKMediaInformationBuilder is used to construct new or derived GCKMediaInformation instances.
-
Builders can be initialized with a content URL, entity, or by copying an existing GCKMediaInformation instance.
-
Key properties like contentID, contentURL, streamType, contentType, and metadata can be set using the builder.
-
Additional properties such as adBreaks, adBreakClips, streamDuration, mediaTracks, textTrackStyle, entity, VMAP, startAbsoluteTime, hlsSegmentFormat, hlsVideoSegmentFormat, and customData can also be configured.
-
The
buildmethod is used to create the final GCKMediaInformation instance from the builder's current attributes.
Overview
A builder object for constructing new or derived GCKMediaInformation instances.
The builder may be used to derive a GCKMediaInformation from an existing one:
It can also be used to construct a new GCKMediaInformation from scratch:
- Since
- 4.0
Inherits NSObject.
kGCKInvalidTimeInterval
if it is not available. More...
Method Detail
| - (instancetype) initWithContentURL: | (NSURL *) | contentURL |
Constructs a new GCKMediaInformationBuilder with the given required attributes, and all other attributes initialized to default values.
- Parameters
- contentURLThe URL of the content to be played.
- Since
- 4.3.4
| - (instancetype) initWithEntity: | (NSString *) | entity |
Constructs a new GCKMediaInformationBuilder with the given required attributes, and all other attributes initialized to default values.
| - (instancetype) initWithMediaInformation: | ( GCKMediaInformation *) | mediaInfo |
Constructs a new GCKMediaInformationBuilder with attributes copied from the given GCKMediaInformation instance.
- Parameters
- mediaInfoThe instance to copy.
| - (instancetype) initWithContentID: | (NSString *) | contentID |
Constructs a new GCKMediaInformationBuilder with the given required attributes, and all other attributes initialized to default values.
- Deprecated:
- Use initWithContentURL: or initWithEntity: instead.
| - (instancetype) initWithContentID: | (NSString *) | contentID | |
| entity: | (NSString *) | entity | |
Constructs a new GCKMediaInformationBuilder with the given required attributes, and all other attributes initialized to default values.
- Deprecated:
- Use initWithContentURL: or initWithEntity: instead.
| - ( GCKMediaInformation *) build |
Builds a GCKMediaInformation using the builder's current attributes.
- Returns
- The new GCKMediaInformation instance.
Property Detail
The content ID for this stream.
- Deprecated:
- Use contentURL and entity instead.
The URL of the content to be played.
- Since
- 4.3.4
The stream type.
Defaults to GCKMediaStreamTypeBuffered.
The content (MIME) type.
The media item metadata.
The list of ad breaks in this content.
The list of ad break clips in this content.
The length of the stream, in seconds, or INFINITY
if it is a live stream.
Defaults to 0.
The media tracks for this stream.
The text track style for this stream.
The deep link for the media as used by Google Assistant, if any.
The VMAP request configuration if any.
See more here: Digital Video Ad Serving Template 4.0 . If this is non-nil, all other ads related fields will be ignored.
- Since
- 4.3.4
The start time of the stream, in seconds in epoch time, or kGCKInvalidTimeInterval
if it is not available.
Defaults to kGCKInvalidTimeInterval
.
- Since
- 4.4.1
The format of the HLS audio segment.
- Since
- 4.6.0
The format of the HLS video segment.
- Since
- 4.6.0
The custom data, if any.

