Протокол <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 . |
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2022-12-05 UTC.
[null,null,["Последнее обновление: 2022-12-05 UTC."],[[["The `GCKMediaControlChannelDelegate` protocol defines methods that inform your application about the status of media playback and control requests."],["It provides callbacks for successful media loading, playback status updates, queue updates, metadata changes, and request completions."],["It also handles errors during media loading and request failures, providing details about the errors."],["Delegate methods are optional, allowing you to implement only the functionalities your application requires."]]],[]]