AI-generated Key Takeaways
-
The GCKUIMediaControllerDelegate protocol is for controllers of UI views that control or display the status of media playback on a Cast device.
-
This delegate protocol includes methods that are called when the remote media player state changes, when preloading for an upcoming media queue item starts, and when new media status is received and processed.
-
The
mediaController:didUpdatePlayerState:lastStreamPosition:
method is called when the remote media player state has changed. -
The
mediaController:didBeginPreloadForItemID:
method is called when preloading has started for an upcoming media queue item. -
The
mediaController:didUpdateMediaStatus:
method is called when new media status has been received from the receiver and processed.
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.