<GCKRemoteMediaClientListener> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
The GCKRemoteMediaClientListener protocol is a listener protocol for the GCKRemoteMediaClient class, which controls media playback on a Cast receiver.
This protocol includes methods that are called when various media events occur on the receiver, such as when a new media session starts, or when media status, metadata, or queue information is updated.
Methods like remoteMediaClient:didStartMediaSessionWithID:, remoteMediaClient:didUpdateMediaStatus:, and remoteMediaClient:didUpdateMediaMetadata: provide updates on the current media playback.
Queue-related methods such as remoteMediaClientDidUpdateQueue:, remoteMediaClient:didReceiveQueueItemIDs:, and remoteMediaClient:didInsertQueueItemsWithIDs:beforeItemWithID: offer detailed insights into changes in the media playback queue.
Additional methods like remoteMediaClientDidUpdatePreloadStatus:, remoteMediaClient:didUpdateQueueItemsWithIDs:, and remoteMediaClient:didRemoveQueueItemsWithIDs: track preload status and modifications to queue items.
Called when a contiguous sequence of items has been inserted into the media queue.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[],["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"]]