Protokół <GCK RemoteMediaClientListener>
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Protokół detektora GCKRemoteMediaClient.
- Od
- 3,0
Dziedziczy <NSObjectNSObject>.
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didStartMediaSessionWithID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
Wywoływane po rozpoczęciu nowej sesji multimediów na odbiorniku.
- Parameters
-
client | The client. |
sessionID | The ID of the new session. |
Wywoływane po odebraniu z odbiornika zaktualizowanego stanu multimediów.
- Parameters
-
client | The client. |
mediaStatus | The updated media status. The status can also be accessed as a property of the player. |
Wywoływane po odebraniu aktualizacji metadanych z odbiornika.
- Parameters
-
Wywoływane po zaktualizowaniu kolejki odtwarzania multimediów w odbiorniku.
- Parameters
-
Wywoływana po zaktualizowaniu stanu wstępnego wczytywania multimediów w odbiorniku.
- Parameters
-
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didReceiveQueueItemIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Wywoływane po odebraniu listy identyfikatorów elementów kolejki multimediów.
- Parameters
-
client | The client. |
queueItemIDs | The list of media queue item IDs. |
- Od
- 4.1
Wywoływane, gdy do kolejki multimediów wstawiono ciągłą sekwencję elementów.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the inserted items. |
beforeItemID | The item ID of the item in front of which the new items have been inserted. If the value is kGCKMediaQueueInvalidItemID, it indicates that the items were appended at the end of the queue. |
- Od
- 4.1
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didUpdateQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Wywoływana po zaktualizowaniu istniejących elementów w kolejce multimediów.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the updated items. |
- Od
- 4.1
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didRemoveQueueItemsWithIDs: |
|
(NSArray< NSNumber * > *) |
queueItemIDs |
|
|
| |
|
optional |
Wywołuje się, gdy z kolejki multimediów usunięto ciągłą sekwencję elementów.
- Parameters
-
client | The client. |
queueItemIDs | The item IDs of the removed items. |
- Od
- 4.1
Wywoływane po otrzymaniu szczegółowych informacji o co najmniej jednym elemencie w kolejce.
- Parameters
-
client | The client. |
queueItems | The queue items. |
- Od
- 4.1
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: 2023-12-01 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2023-12-01 UTC."],[[["The `GCKRemoteMediaClientListener` protocol defines methods to receive updates on media playback and queue status from a Cast receiver."],["It provides notifications for media session start, status changes, metadata updates, and queue modifications."],["Developers can implement this protocol to build Cast-enabled applications that respond to playback events on the receiver."],["This protocol includes methods for handling queue item insertion, update, removal, and retrieval of detailed information."],["Introduced in version 3.0 and continually enhanced with features like queue management in later versions."]]],["The `GCKRemoteMediaClientListener` protocol defines methods for monitoring media playback on a Cast receiver. Key actions include receiving updates on: new media session starts with `didStartMediaSessionWithID:`, media status changes via `didUpdateMediaStatus:`, and metadata updates through `didUpdateMediaMetadata:`. It also handles queue modifications with methods like `remoteMediaClientDidUpdateQueue:`, `didReceiveQueueItemIDs:`, `didInsertQueueItemsWithIDs:beforeItemWithID:`, `didUpdateQueueItemsWithIDs:`, `didRemoveQueueItemsWithIDs:`, `didReceiveQueueItems:`, and `remoteMediaClientDidUpdatePreloadStatus:`. Each method is linked to the client and relevant identifiers.\n"]]