Protokol <GCKMediaControlChannelDelegate>
Mewarisi <GCKCastChannelNSObject>.
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
didCompleteLoadWithSessionID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
Dipanggil saat permintaan untuk memuat media telah selesai.
- Parameters
-
mediaControlChannel | The channel. |
sessionID | The unique media session ID that has been assigned to this media item. |
Dipanggil saat permintaan memuat media gagal.
- Parameters
-
mediaControlChannel | The channel. |
error | The load error. |
Dipanggil saat informasi status pemain yang diperbarui diterima.
- Parameters
-
mediaControlChannel | The channel. |
Dipanggil saat informasi status antrean yang diperbarui diterima.
- Parameters
-
mediaControlChannel | The channel. |
Dipanggil saat status pramuat yang diperbarui diterima.
- Parameters
-
mediaControlChannel | The channel. |
Dipanggil saat metadata media yang diperbarui diterima.
- Parameters
-
mediaControlChannel | The channel. |
- (void) mediaControlChannel: |
|
(GCKMediaControlChannel *) |
mediaControlChannel |
requestDidCompleteWithID: |
|
(NSInteger) |
requestID |
|
|
| |
|
optional |
Dipanggil saat permintaan berhasil.
- 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 |
Dipanggil saat permintaan tidak lagi dilacak karena permintaan lain dari jenis yang sama telah dikeluarkan oleh aplikasi.
- 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 |
Dipanggil saat permintaan tidak lagi dilacak karena telah dibatalkan secara eksplisit.
- Parameters
-
mediaControlChannel | The channel. |
requestID | The request ID that has been cancelled. This is the ID returned when the request was made. |
Dipanggil saat permintaan gagal.
- 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 . |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2022-12-05 UTC.
[null,null,["Terakhir diperbarui pada 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"]]