<GCKUIMediaControllerDelegate> Protocol

  • 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.

<GCKUIMediaControllerDelegate> Protocol Reference

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

- (void) mediaController: (GCKUIMediaController *)  mediaController
didUpdatePlayerState: (GCKMediaPlayerState)  playerState
lastStreamPosition: (NSTimeInterval)  streamPosition 
optional

Called when the remote media player state has changed.

Parameters
mediaControllerThe GCKUIMediaController instance.
playerStateThe new player state.
streamPositionThe last known stream position at the time of the player state change.
- (void) mediaController: (GCKUIMediaController *)  mediaController
didBeginPreloadForItemID: (NSUInteger)  itemID 
optional

Called when preloading has started for an upcoming media queue item.

Parameters
mediaControllerThe GCKUIMediaController instance.
itemIDThe ID of the item that is being preloaded, or kGCKMediaQueueInvalidItemID if none.
- (void) mediaController: (GCKUIMediaController *)  mediaController
didUpdateMediaStatus: (GCKMediaStatus *)  mediaStatus 
optional

Called when new media status has been received from the receiver, and after the GCKUIMediaController has finished processing the updated status.

Parameters
mediaControllerThe GCKUIMediaController instance.
mediaStatusThe new media status.