概览
此类继承 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 对象中的自定义数据中提取广告插播时间点信息的代理。