GCKMediaInformationBuilder 类
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
用于构建新的或派生的 GCKMediaInformation 实例的构建器对象。
构建器可用于从现有构造函数派生 GCKMediaInformation:
它还可用于从头开始构建新的 GCKMediaInformation:
- 开始时间
- 4.0
此类继承 NSObject。
| - (instancetype) initWithContentURL: |
|
(NSURL *) |
contentURL |
|
| - (instancetype) initWithEntity: |
|
(NSString *) |
entity |
|
| - (instancetype) initWithContentID: |
|
(NSString *) |
contentID |
|
数据流类型。
默认为 GCKMediaStreamTypeBuffered。
| - (NSString*) contentType |
|
readwritenonatomiccopy |
| - (NSTimeInterval) streamDuration |
|
readwritenonatomicassign |
视频流的时长(以秒为单位),如果是直播活动,则为 INFINITY。
默认值为 0。
VMAP 请求配置(如果有)。
详见数字视频广告投放模板 4.0。如果此字段为非 nil,则系统将忽略所有其他广告相关字段。
- 开始时间
- 4.3.4
| - (NSTimeInterval) startAbsoluteTime |
|
readwritenonatomicassign |
数据流的开始时间(以新纪元时间为单位的秒数),如果不可用,则为 kGCKInvalidTimeInterval。
默认为 kGCKInvalidTimeInterval。
- 开始时间
- 4.4.1
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-25。"],[],["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"]]