總覽
彙整媒體項目相關資訊的類別。
沿用 NSObject。實作 <NSCopy>。
執行個體方法摘要 | |
(instancetype) | - initWithContentID:streamType:contentType:metadata:streamDuration:mediaTracks:textTrackStyle:customData: |
指定初始化器。更多... | |
(instancetype) | - initWithContentID:streamType:contentType:metadata:streamDuration:customData: |
舊版初始化器,不包含媒體曲目或文字音軌樣式。更多... | |
(GCKMediaTrack *__nullable) | - mediaTrackWithID: |
搜尋具有指定曲目 ID 的媒體曲目。更多... | |
屬性摘要 | |
NSString * | contentID |
這個串流的內容 ID。更多... | |
GCKMediaStreamType | streamType |
串流類型。更多... | |
NSString * | contentType |
內容 (MIME) 類型。更多... | |
GCKMediaMetadata * | metadata |
媒體項目中繼資料。更多... | |
NSArray< GCKAdBreakInfo * > * | adBreaks |
此內容中的廣告插播清單。更多... | |
NSArray< GCKAdBreakClipInfo * > * | adBreakClips |
這類內容中的廣告插播片段清單。更多... | |
NSTimeInterval | streamDuration |
串流的長度 (以秒為單位)。如果是即時串流,則為 INFINITY 。更多... | |
NSArray< GCKMediaTrack * > * | mediaTracks |
這個串流的媒體軌。更多... | |
GCKMediaTextTrackStyle * | textTrackStyle |
這個串流的文字軌樣式樣式。更多... | |
id | customData |
自訂資料 (如果有的話)。更多... | |
方法說明
- (instancetype) initWithContentID: | (NSString *) | contentID | |
streamType: | (GCKMediaStreamType) | streamType | |
contentType: | (NSString *) | contentType | |
metadata: | (GCKMediaMetadata *__nullable) | metadata | |
streamDuration: | (NSTimeInterval) | streamDuration | |
mediaTracks: | (NSArray< GCKMediaTrack * > *__nullable) | mediaTracks | |
textTrackStyle: | (GCKMediaTextTrackStyle *__nullable) | textTrackStyle | |
customData: | (id __nullable) | customData | |
指定初始化器。
- Parameters
-
contentID The content ID. streamType The stream type. contentType The content (MIME) type. metadata The media item metadata. streamDuration The stream duration. mediaTracks The media tracks, if any, otherwise nil
.textTrackStyle The text track style, if any, otherwise nil
.customData The custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- (instancetype) initWithContentID: | (NSString *) | contentID | |
streamType: | (GCKMediaStreamType) | streamType | |
contentType: | (NSString *) | contentType | |
metadata: | (GCKMediaMetadata *__nullable) | metadata | |
streamDuration: | (NSTimeInterval) | streamDuration | |
customData: | (id __nullable) | customData | |
舊版初始化器,不包含媒體曲目或文字音軌樣式。
- Parameters
-
contentID The content ID. streamType The stream type. contentType The content (MIME) type. metadata The media item metadata. streamDuration The stream duration. customData Custom application-specific data. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- Deprecated:
- 使用指定的初始化器。
- (GCKMediaTrack *__nullable) mediaTrackWithID: | (NSInteger) | trackID |
搜尋具有指定曲目 ID 的媒體曲目。
- Parameters
-
trackID The media track ID.
- 傳回
- 相符的 GCKMediaTrack 物件;如果沒有指定 ID 的媒體曲目,則為
nil
。
資源詳細資料
|
readnonatomiccopy |
這個串流的內容 ID。
|
readnonatomicassign |
串流類型。
|
readnonatomiccopy |
內容 (MIME) 類型。
|
readnonatomicstrong |
媒體項目中繼資料。
|
readnonatomiccopy |
此內容中的廣告插播清單。
|
readnonatomiccopy |
這類內容中的廣告插播片段清單。
- 辛策
- 3.3
|
readnonatomicassign |
串流的長度 (以秒為單位)。如果是即時串流,則為 INFINITY
。
|
readnonatomiccopy |
這個串流的媒體軌。
|
readnonatomiccopy |
這個串流的文字軌樣式樣式。
|
readnonatomicstrong |
自訂資料 (如果有的話)。