<GCKMediaControlChannelDelegate> 协议
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
继承 <GCKCastChannelNSObject>。
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| didCompleteLoadWithSessionID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
在加载媒体请求完成时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| sessionID | The unique media session ID that has been assigned to this media item. |
在加载媒体请求失败时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| error | The load error. |
在收到更新后的玩家状态信息时调用。
- Parameters
-
| mediaControlChannel | The channel. |
在收到更新后的队列状态信息时调用。
- Parameters
-
| mediaControlChannel | The channel. |
收到更新后的预加载状态时调用。
- Parameters
-
| mediaControlChannel | The channel. |
在收到更新的媒体元数据时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| requestDidCompleteWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
在请求成功时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that failed. This is the ID returned when the request was made. |
| - (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
| didReplaceRequestWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
在由于应用已发出同一类型的另一个请求而不再跟踪请求时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The 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
-
| mediaControlChannel | The channel. |
| requestID | The request ID that has been cancelled. This is the ID returned when the request was made. |
在请求失败时调用。
- Parameters
-
| mediaControlChannel | The channel. |
| requestID | The request ID that failed. This is the ID returned when the request was made. |
| error | The error. If any custom data was associated with the error, it will be in the error's userInfo dictionary with the key . |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-05。
[null,null,["最后更新时间 (UTC):2022-12-05。"],[],["The GCKMediaControlChannel delegate protocol updates on media operations. It notifies when media loading succeeds via `didCompleteLoadWithSessionID` or fails via `didFailToLoadMediaWithError`. It also provides updates on the player status, queue status, preload status, and metadata using `mediaControlChannelDidUpdateStatus`, `mediaControlChannelDidUpdateQueue`, `mediaControlChannelDidUpdatePreloadStatus`, and `mediaControlChannelDidUpdateMetadata` respectively. Furthermore, the protocol handles request statuses with `requestDidCompleteWithID`, `didReplaceRequestWithID`, `didCancelRequestWithID`, and `requestDidFailWithID`.\n"]]