<GCKMediaControlChannelDelegate> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
outlined_flag
GCKMediaControlChannelDelegate is a protocol for media control operations within the Google Cast framework.
This delegate provides methods to notify when a media load request is completed or fails.
It includes methods for receiving updates on player status, queue status, preload status, and media metadata.
The delegate also provides notifications for when a media control request succeeds, is replaced, is cancelled, or fails.
The GCKMediaControlChannel delegate protocol.
Inherits <GCKCastChannelNSObject>.
- (void) mediaControlChannel:
(GCKMediaControlChannel *)
mediaControlChannel
didCompleteLoadWithSessionID:
(NSInteger)
sessionID
optional
Called when a request to load media has completed.
Parameters
mediaControlChannel The channel.
sessionID The unique media session ID that has been assigned to this media item.
Called when a request to load media has failed.
Parameters
mediaControlChannel The channel.
error The load error.
Called when updated player status information is received.
Parameters
mediaControlChannel The channel.
Called when updated queue status information is received.
Parameters
mediaControlChannel The channel.
Called when updated preload status is received.
Parameters
mediaControlChannel The channel.
Called when updated media metadata is received.
Parameters
mediaControlChannel The channel.
- (void) mediaControlChannel:
(GCKMediaControlChannel *)
mediaControlChannel
requestDidCompleteWithID:
(NSInteger)
requestID
optional
Called when a request succeeds.
Parameters
mediaControlChannel The channel.
requestID The request ID that failed. This is the ID returned when the request was made.
- (void) mediaControlChannel:
(GCKMediaControlChannel *)
mediaControlChannel
didReplaceRequestWithID:
(NSInteger)
requestID
optional
Called when a request is no longer being tracked because another request of the same type has been issued by the application.
Parameters
mediaControlChannel The channel.
requestID The request ID that has been replaced. This is the ID returned when the request was made.
- (void) mediaControlChannel:
(GCKMediaControlChannel *)
mediaControlChannel
didCancelRequestWithID:
(NSInteger)
requestID
optional
Called when a request is no longer being tracked because it has been explicitly cancelled.
Parameters
mediaControlChannel The channel.
requestID The request ID that has been cancelled. This is the ID returned when the request was made.
Called when a request fails.
Parameters
mediaControlChannel The channel.
requestID The request ID that failed. This is the ID returned when the request was made.
error The error. If any custom data was associated with the error, it will be in the error's userInfo dictionary with the key .
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[],["The GCKMediaControlChannel delegate protocol updates on media operations. It notifies when media loading succeeds via `didCompleteLoadWithSessionID` or fails via `didFailToLoadMediaWithError`. It also provides updates on the player status, queue status, preload status, and metadata using `mediaControlChannelDidUpdateStatus`, `mediaControlChannelDidUpdateQueue`, `mediaControlChannelDidUpdatePreloadStatus`, and `mediaControlChannelDidUpdateMetadata` respectively. Furthermore, the protocol handles request statuses with `requestDidCompleteWithID`, `didReplaceRequestWithID`, `didCancelRequestWithID`, and `requestDidFailWithID`.\n"]]