GCKMediaInformationBuilder Class
Stay organized with collections
Save and categorize content based on your preferences.
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 build method is used to create the final GCKMediaInformation instance from the builder's current attributes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["The `GCKMediaInformationBuilder` class allows constructing new or derived `GCKMediaInformation` instances. To create a new instance, initialize a builder with `initWithContentURL` or `initWithEntity`, set properties like `contentType`, `streamType`, and `metadata`, and then call `build`. To derive from an existing instance, initialize the builder with `initWithMediaInformation`, modify properties such as `contentID` or `streamDuration`, and use `build`. Key properties include `contentURL`, `streamType`, `contentType`, `streamDuration`, `metadata`, and `entity`, that describe the media and their respective values.\n"]]