<GCKMediaControlChannelDelegate> 协议

<GCKMediaControlChannelDelegate> 协议参考

概览

GCKMediaControlChannel 委托协议。

继承 <GCKCastChannelNSObject>。

实例方法摘要

(void) - mediaControlChannel:didCompleteLoadWithSessionID:
 在加载媒体请求完成时调用。更多...
 
(void) - mediaControlChannel:didFailToLoadMediaWithError:
 在加载媒体请求失败时调用。更多...
 
(void) - mediaControlChannelDidUpdateStatus:
 在收到更新后的玩家状态信息时调用。更多...
 
(void) - mediaControlChannelDidUpdateQueue:
 在收到更新后的队列状态信息时调用。更多...
 
(void) - mediaControlChannelDidUpdatePreloadStatus:
 收到更新后的预加载状态时调用。更多...
 
(void) - mediaControlChannelDidUpdateMetadata:
 在收到更新的媒体元数据时调用。更多...
 
(void) - mediaControlChannel:requestDidCompleteWithID:
 在请求成功时调用。更多...
 
(void) - mediaControlChannel:didReplaceRequestWithID:
 在由于应用已发出同一类型的另一个请求而不再跟踪请求时调用。更多...
 
(void) - mediaControlChannel:didCancelRequestWithID:
 在由于明确取消请求而不再跟踪请求时调用。更多...
 
(void) - mediaControlChannel:requestDidFailWithID:error:
 在请求失败时调用。更多...
 

方法详细信息

- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
didCompleteLoadWithSessionID: (NSInteger)  sessionID 
optional

在加载媒体请求完成时调用。

Parameters
mediaControlChannelThe channel.
sessionIDThe unique media session ID that has been assigned to this media item.
- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
didFailToLoadMediaWithError: (GCKError *)  error 
optional

在加载媒体请求失败时调用。

Parameters
mediaControlChannelThe channel.
errorThe load error.
- (void) mediaControlChannelDidUpdateStatus: (GCKMediaControlChannel *)  mediaControlChannel
optional

在收到更新后的玩家状态信息时调用。

Parameters
mediaControlChannelThe channel.
- (void) mediaControlChannelDidUpdateQueue: (GCKMediaControlChannel *)  mediaControlChannel
optional

在收到更新后的队列状态信息时调用。

Parameters
mediaControlChannelThe channel.
- (void) mediaControlChannelDidUpdatePreloadStatus: (GCKMediaControlChannel *)  mediaControlChannel
optional

收到更新后的预加载状态时调用。

Parameters
mediaControlChannelThe channel.
- (void) mediaControlChannelDidUpdateMetadata: (GCKMediaControlChannel *)  mediaControlChannel
optional

在收到更新的媒体元数据时调用。

Parameters
mediaControlChannelThe channel.
- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
requestDidCompleteWithID: (NSInteger)  requestID 
optional

在请求成功时调用。

Parameters
mediaControlChannelThe channel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
didReplaceRequestWithID: (NSInteger)  requestID 
optional

在由于应用已发出同一类型的另一个请求而不再跟踪请求时调用。

Parameters
mediaControlChannelThe channel.
requestIDThe request ID that has been replaced. This is the ID returned when the request was made.
- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
didCancelRequestWithID: (NSInteger)  requestID 
optional

在由于明确取消请求而不再跟踪请求时调用。

Parameters
mediaControlChannelThe channel.
requestIDThe request ID that has been cancelled. This is the ID returned when the request was made.
- (void) mediaControlChannel: (GCKMediaControlChannel *)  mediaControlChannel
requestDidFailWithID: (NSInteger)  requestID
error: (GCKError *)  error 
optional

在请求失败时调用。

Parameters
mediaControlChannelThe channel.
requestIDThe request ID that failed. This is the ID returned when the request was made.
errorThe error. If any custom data was associated with the error, it will be in the error's userInfo dictionary with the key .