Protokół <GCKMediaControlChannelDelegate>
Protokół przekazywania GCKMediaControlChannel.
Dziedziczy obiekt <GCKCastChannelNSObject>.
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
didCompleteLoadWithSessionID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
Wywoływane po zakończeniu żądania wczytania multimediów.
- Parameters
-
mediaControlChannel | The channel. |
sessionID | The unique media session ID that has been assigned to this media item. |
Wywoływane, gdy nie udało się wczytać mediów.
- Parameters
-
mediaControlChannel | The channel. |
error | The load error. |
Wywoływana po otrzymaniu zaktualizowanych informacji o stanie gracza.
- Parameters
-
mediaControlChannel | The channel. |
Wywoływane po otrzymaniu zaktualizowanych informacji o kolejce.
- Parameters
-
mediaControlChannel | The channel. |
Wywoływane po otrzymaniu zaktualizowanego stanu wstępnego wczytywania.
- Parameters
-
mediaControlChannel | The channel. |
Wywoływana po otrzymaniu zaktualizowanych metadanych multimediów.
- Parameters
-
mediaControlChannel | The channel. |
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
requestDidCompleteWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
Wywoływana, gdy żądanie zostanie zrealizowane.
- 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 |
Wywoływana, gdy żądanie nie jest już śledzone, ponieważ aplikacja wysłała kolejną prośbę tego samego typu.
- 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 |
Wywoływane, gdy żądanie nie jest już śledzone, ponieważ zostało anulowane.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that has been cancelled. This is the ID returned when the request was made. |
Wywoływane, gdy żądanie się nie powiedzie.
- 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 . |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2022-12-05 UTC.
[null,null,["Ostatnia aktualizacja: 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."]]],["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"]]