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 |
串流開始時間 (以 Epoch 紀元時間為單位的秒數);如果沒有,則為 kGCKInvalidTimeInterval。
預設值為 kGCKInvalidTimeInterval。
- 開始時間
- 4.4.1
HTTP 即時串流音訊區段的格式。
- 開始時間
- 4.6.0
HTTP 即時串流影片片段的格式。
- 開始時間
- 4.6.0
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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"]],["上次更新時間: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"]]