總覽
沿用 NSObject。
屬性摘要 | |
BOOL | connected |
表示此物件是否連線至工作階段的標記。更多... | |
GCKMediaStatus * | mediaStatus |
目前的媒體狀態,由媒體控制管道回報。更多... | |
GCKMediaQueue * | mediaQueue |
媒體佇列。更多... | |
NSTimeInterval | timeSinceLastMediaStatusUpdate |
上次收到媒體狀態更新後經過的時間。更多... | |
BOOL | playingLiveStream |
表示此用戶端是否正在播放直播的旗標。更多... | |
id < GCKRemoteMediaClientAdInfoParserDelegate > | adInfoParserDelegate |
能從 GCKMediaStatus 物件中的自訂資料擷取廣告插播資訊的委派代表。更多... | |
方法說明
- (void) addListener: | (id< GCKRemoteMediaClientListener >) | listener |
將事件監聽器新增到這個物件的監聽器清單。
新增的監聽器強度較低,應予以保留,以免發生意外取消配置的情況。
- Parameters
-
listener The listener to add.
- (void) removeListener: | (id< GCKRemoteMediaClientListener >) | listener |
從此物件的事件監聽器清單中移除事件監聽器。
- Parameters
-
listener The listener to remove.
- (GCKRequest *) loadMediaWithLoadRequestData: | (GCKMediaLoadRequestData *) | requestData |
載入並開始播放媒體項目,以及包含要求資料的媒體項目佇列。
- Parameters
-
requestData Describes the media load request.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.4.1
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo |
載入並使用預設選項播放新的媒體項目。
建議您改用 loadMediaWithLoadRequestData:,它是進階載入指令,可支援載入單一項目或包含其他選項的佇列。
- Parameters
-
mediaInfo Describes the media item to load.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
withOptions: | (GCKMediaLoadOptions *) | options | |
載入並開始播放具有指定選項的新媒體項目。
建議您改用 loadMediaWithLoadRequestData:,它是進階載入指令,可支援載入單一項目或包含其他選項的佇列。
- Parameters
-
mediaInfo Describes the media item to load. options The load options for this request.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.0
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
載入並可選擇開始播放新的媒體項目。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
載入並可選擇開始播放新的媒體項目。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
載入並可選擇開始播放新的媒體項目。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
載入並可選擇開始播放新的媒體項目。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) loadMedia: | (GCKMediaInformation *) | mediaInfo | |
autoplay: | (BOOL) | autoplay | |
playPosition: | (NSTimeInterval) | playPosition | |
activeTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs | |
customData: | (nullable id) | customData | |
載入並可選擇開始播放新的媒體項目。
- Parameters
-
mediaInfo Describes the media item to load. autoplay Whether playback should start immediately. playPosition The initial playback position. activeTrackIDs An array of integers specifying the active tracks. May be nil
.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate |
- (GCKRequest *) setPlaybackRate: | (float) | playbackRate | |
customData: | (nullable id) | customData | |
設定目前媒體工作階段的播放速率。
- Parameters
-
playbackRate The new playback rate, which must be between GCKMediaLoadOptions::kGCKMediaMinPlaybackRate and GCKMediaLoadOptions::kGCKMediaMaxPlaybackRate. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.0
- (GCKRequest *) setActiveTrackIDs: | (nullable NSArray< NSNumber * > *) | activeTrackIDs |
設定使用中的音軌。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
activeTrackIDs An array of integers specifying the active tracks. May be empty or nil
to disable any currently active tracks.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) setTextTrackStyle: | (nullable GCKMediaTextTrackStyle *) | textTrackStyle |
設定文字軌樣式。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
textTrackStyle The text track style. The style will not be changed if this is nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) pause |
- (GCKRequest *) pauseWithCustomData: | (nullable id) | customData |
暫停播放目前媒體項目。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) stop |
- (GCKRequest *) stopWithCustomData: | (nullable id) | customData |
停止播放目前媒體項目。
如果目前已載入佇列,系統將會移除佇列。如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) play |
- (GCKRequest *) playWithCustomData: | (nullable id) | customData |
開始播放 (或繼續) 播放目前媒體項目。
串流一次一律會開始播放。如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) skipAd |
- (GCKRequest *) seekWithOptions: | (GCKMediaSeekOptions *) | options |
尋找目前媒體項目中的新位置。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
options The seek options for the request.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.0
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position |
尋找目前媒體項目中的新位置。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
position The new position from the beginning of the stream.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 findWithOptions:.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
尋找目前媒體項目中的新位置。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
position The new position interval from the beginning of the stream. resumeState The action to take after the seek operation has finished.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 findWithOptions:.
- (GCKRequest *) seekToTimeInterval: | (NSTimeInterval) | position | |
resumeState: | (GCKMediaResumeState) | resumeState | |
customData: | (nullable id) | customData | |
尋找目前媒體項目中的新位置。
如果目前沒有目前的媒體狀態,要求就會失敗。
- Parameters
-
position The new position from the beginning of the stream. resumeState The action to take after the seek operation has finished. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 findWithOptions:.
- (GCKRequest *) queueFetchItemIDs |
要求佇列的項目 ID 清單。
結果會傳送至委派回呼 GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItemIDs:.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.1
- (GCKRequest *) queueFetchItemsForIDs: | (NSArray< NSNumber * > *) | queueItemIDs |
針對具有指定項目 ID 的佇列項目要求完整資訊。
結果會傳送至委派回呼 GCKRemoteMediaClientDelegate::remoteMediaClient:didReceiveQueueItems:.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- 辛策
- 4.1
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
載入並選擇性地開始播放新媒體項目佇列。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
載入並選擇性地開始播放新媒體項目佇列。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
startIndex: | (NSUInteger) | startIndex | |
playPosition: | (NSTimeInterval) | playPosition | |
repeatMode: | (GCKMediaRepeatMode) | repeatMode | |
customData: | (nullable id) | customData | |
載入並選擇性地開始播放新媒體項目佇列。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.startIndex The index of the item in the items array that should be played first. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. repeatMode The repeat mode for playing the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- Deprecated:
- 使用 loadMediaWithLoadRequestData:
- (GCKRequest *) queueLoadItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
withOptions: | (GCKMediaQueueLoadOptions *) | options | |
載入並選擇性地開始播放新媒體項目佇列。
建議您改用 loadMediaWithLoadRequestData:,它是進階載入指令,可支援載入單一項目或包含其他選項的佇列。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to load. Must not be nil
or empty.options The load options used to load the queue items, as defined by GCKMediaQueueLoadOptions
- 辛策
- 4.3.1
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
在佇列中插入新的媒體項目清單。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueInsertItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
在佇列中插入新的媒體項目清單。
- Parameters
-
queueItems An array of GCKMediaQueueItem instances to insert. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the inserted list. If the value is kGCKMediaQueueInvalidItemID, the inserted list will be appended to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueInsertItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
將單一項目插入佇列的便利方法。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
一種簡易方法,可將單一項目插入佇列中,使其成為目前項目。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueInsertAndPlayItem: | (GCKMediaQueueItem *) | item | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
一種簡易方法,可將單一項目插入佇列中,使其成為目前項目。
- Parameters
-
item The item to insert. beforeItemID The ID of the item that will be located immediately after the inserted item. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the inserted item will be appended to the end of the queue. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems |
- (GCKRequest *) queueUpdateItems: | (NSArray< GCKMediaQueueItem * > *) | queueItems | |
customData: | (nullable id) | customData | |
更新佇列。
- Parameters
-
queueItems The list of updated items. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
從佇列中移除媒體項目清單。
如果佇列中沒有任何內容,目前的媒體工作階段就會終止。
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueRemoveItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
customData: | (nullable id) | customData | |
從佇列中移除媒體項目清單。
如果佇列中沒有任何內容,目前的媒體工作階段就會終止。
- Parameters
-
itemIDs An array of media item IDs identifying the items to remove. Must not be nil
or empty.customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueRemoveItemWithID: | (NSUInteger) | itemID |
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
重新排序佇列中的媒體項目清單。
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be appended at the end of the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueReorderItemsWithIDs: | (NSArray< NSNumber * > *) | queueItemIDs | |
insertBeforeItemWithID: | (NSUInteger) | beforeItemID | |
customData: | (nullable id) | customData | |
重新排序佇列中的媒體項目清單。
- Parameters
-
queueItemIDs An array of media item IDs identifying the items to reorder. Must not be nil
or empty.beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the reordered list will be moved to the end of the queue. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueMoveItemWithID: | (NSUInteger) | itemID | |
beforeItemWithID: | (NSUInteger) | beforeItemID | |
方便在佇列中移動單一項目的便利方法。
- Parameters
-
itemID The ID of the item to move. beforeItemID The ID of the item that will be located immediately after the reordered list. If the value is kGCKMediaQueueInvalidItemID, or does not refer to any item currently in the queue, the item will be moved to the end of the queue.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID |
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
customData: | (nullable id) | customData | |
跳至佇列中具有指定 ID 的項目。
- Parameters
-
itemID The ID of the item to jump to. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueJumpToItemWithID: | (NSUInteger) | itemID | |
playPosition: | (NSTimeInterval) | playPosition | |
customData: | (nullable id) | customData | |
跳至佇列中具有指定 ID 的項目。
- Parameters
-
itemID The ID of the item to jump to. playPosition The initial playback position for the item when it is first played, relative to the beginning of the stream. This value is ignored when the same item is played again, for example when the queue repeats, or the item is later jumped to. In those cases the item's startTime is used. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueNextItem |
移至佇列中的下一個項目。
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queuePreviousItem |
移至佇列中的上一個項目。
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) queueSetRepeatMode: | (GCKMediaRepeatMode) | repeatMode |
- (GCKRequest *) setStreamVolume: | (float) | volume |
設定串流音量。
如果沒有目前的媒體工作階段,要求會失敗。
- Parameters
-
volume The new volume, in the range [0.0 - 1.0].
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) setStreamVolume: | (float) | volume | |
customData: | (nullable id) | customData | |
設定串流音量。
如果沒有目前的媒體工作階段,要求會失敗。
- Parameters
-
volume The new volume, in the range [0.0 - 1.0]. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) setStreamMuted: | (BOOL) | muted |
設定是否忽略串流。
如果沒有目前的媒體工作階段,要求會失敗。
- Parameters
-
muted Whether the stream should be muted or unmuted.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) setStreamMuted: | (BOOL) | muted | |
customData: | (nullable id) | customData | |
設定是否忽略串流。
如果沒有目前的媒體工作階段,要求會失敗。
- Parameters
-
muted Whether the stream should be muted or unmuted. customData Custom application-specific data to pass along with the request. Must either be an object that can be serialized to JSON using NSJSONSerialization, or nil
.
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (GCKRequest *) requestStatus |
向接收端要求更新媒體狀態資訊。
- 傳回
- 用於追蹤這個要求的 GCKRequest 物件。
- (NSTimeInterval) approximateStreamPosition |
傳回從上一次接收的串流資訊和系統更新後經過的間隔時間計算而得的約略串流位置。
如果頻道未連線或目前未載入任何媒體,則傳回 0。
- (NSTimeInterval) approximateLiveSeekableRangeStart |
傳回可搜尋範圍的約略起始位置,此數值是根據從上次收到的串流資訊以及更新後經過的時間開始計算。
如果頻道未連線或目前未載入任何媒體,則傳回 0。如果串流不是即時串流,或者沒有可供搜尋的範圍,則傳回 kGCKInvalidTimeInterval
。
- 辛策
- 4.4.1
- (NSTimeInterval) approximateLiveSeekableRangeEnd |
傳回可搜尋範圍的約略結束位置,此數值是根據從上次收到的串流資訊以及更新後經過的時間開始計算。
如果頻道未連線或目前未載入任何媒體,則傳回 0。如果串流不是即時串流,或者沒有可供搜尋的範圍,則傳回 kGCKInvalidTimeInterval
。
- 辛策
- 4.4.1
- (void) notifyDidStartMediaSession |
媒體工作階段開始時,也就是在遠端播放器成功載入新媒體後,由子類別呼叫。
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidUpdateMediaStatus |
當用戶端的 mediaStatus 物件變更時,子類別會呼叫子類別。
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidUpdateQueue |
每當由用戶端管理的媒體佇列變更時,由子類別呼叫。
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidUpdatePreloadStatus |
每次用戶端 GCKMediaStatus 的 GCKMediaStatus::preloadedItemID 變更時,子類別都會呼叫。
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidUpdateMetadata |
每當中繼資料變更時,由子類別呼叫。
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidReceiveQueueItemIDs: | (NSArray< NSNumber * > *) | itemIDs |
每次收到媒體佇列項目 ID 清單時,子類別會呼叫它。
- Parameters
-
itemIDs The list of queue item IDs.
- 辛策
- 4.1
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidInsertQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs | |
beforeItemWithID: | (GCKMediaQueueItemID) | beforeItemID | |
每當有佇列的佇列項目序列已排入佇列時,子類別會呼叫該函式。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were inserted. beforeItemID The ID of the queue item in front of which the new items were inserted, or kGCKInvalidQueueItemID if the items were appended to the end of the queue.
- 辛策
- 4.1
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidUpdateQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
每當佇列中的現有佇列項目更新時,子類別會呼叫該類別。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were updated.
- 辛策
- 4.1
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidRemoveQueueItemsWithIDs: | (NSArray< NSNumber * > *) | itemIDs |
每當從佇列中移除連續佇列佇列序列時,子類別會呼叫該函式。
- Parameters
-
itemIDs The list of queue item IDs identifying the items that were removed.
- 辛策
- 4.1
由「GCKRemoteMediaClient(Protected)」類別提供。
- (void) notifyDidReceiveQueueItems: | (NSArray< GCKMediaQueueItem * > *) | items |
每次收到佇列項目時,要由子類別呼叫。
- Parameters
-
items The list of queue items.
- 辛策
- 4.1
由「GCKRemoteMediaClient(Protected)」類別提供。
資源詳細資料
|
readnonatomicassign |
表示此物件是否連線至工作階段的標記。
|
readnonatomicstrong |
目前的媒體狀態,由媒體控制管道回報。
|
readnonatomicstrong |
媒體佇列。
- 辛策
- 4.3.4
|
readnonatomicassign |
上次收到媒體狀態更新後經過的時間。
如果尚未收到媒體狀態,這個值將會是 NAN。
|
readnonatomicassign |
表示此用戶端是否正在播放直播的旗標。
- 辛策
- 4.4.1
|
readwritenonatomicweak |
能從 GCKMediaStatus 物件中的自訂資料擷取廣告插播資訊的委派代表。