AI-generated Key Takeaways
-
The
GCKUIMediaControllerDelegate
protocol defines methods that respond to changes in media playback state and status on a Cast device. -
It provides notifications for events like player state changes, media status updates, and preloading of media items.
-
Developers can implement these methods to update their UI and application logic based on the current playback state and media information.
-
These methods are optional and called by the
GCKUIMediaController
instance to inform the delegate of changes.
Overview
The GCKUIMediaController delegate protocol.
- Since
- 3.0
Inherits <NSObjectNSObject>.
Instance Method Summary | |
(void) | - mediaController:didUpdatePlayerState:lastStreamPosition: |
Called when the remote media player state has changed. More... | |
(void) | - mediaController:didBeginPreloadForItemID: |
Called when preloading has started for an upcoming media queue item. More... | |
(void) | - mediaController:didUpdateMediaStatus: |
Called when new media status has been received from the receiver, and after the GCKUIMediaController has finished processing the updated status. More... | |
Method Detail
|
optional |
Called when the remote media player state has changed.
- Parameters
-
mediaController The GCKUIMediaController instance. playerState The new player state. streamPosition The last known stream position at the time of the player state change.
|
optional |
Called when preloading has started for an upcoming media queue item.
- Parameters
-
mediaController The GCKUIMediaController instance. itemID The ID of the item that is being preloaded, or kGCKMediaQueueInvalidItemID if none.
|
optional |
Called when new media status has been received from the receiver, and after the GCKUIMediaController has finished processing the updated status.
- Parameters
-
mediaController The GCKUIMediaController instance. mediaStatus The new media status.