<GCKMediaControlChannelDelegate> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
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.
[[["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 `GCKMediaControlChannelDelegate` protocol defines methods that inform your application about the status of media playback and control requests."],["It provides callbacks for successful media loading, playback status updates, queue updates, metadata changes, and request completions."],["It also handles errors during media loading and request failures, providing details about the errors."],["Delegate methods are optional, allowing you to implement only the functionalities your application requires."]]],[]]