<GCKMediaControlChannelDelegate> Protocol

<GCKMediaControlChannelDelegate> Protocol Reference

Overview

The GCKMediaControlChannel delegate protocol.

Inherits <GCKCastChannelNSObject>.

Instance Method Summary

Called when a request to load media has completed. More...
Called when a request to load media has failed. More...
Called when updated player status information is received. More...
Called when updated queue status information is received. More...
Called when updated preload status is received. More...
Called when updated media metadata is received. More...
Called when a request succeeds. More...
Called when a request is no longer being tracked because another request of the same type has been issued by the application. More...
Called when a request is no longer being tracked because it has been explicitly cancelled. More...
Called when a request fails. More...

Method Detail

- (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.
- (void) mediaControlChannel: ( GCKMediaControlChannel *)  mediaControlChannel
didFailToLoadMediaWithError: ( GCKError *)  error
optional

Called when a request to load media has failed.

Parameters
mediaControlChannel The channel.
error The load error.
- (void) mediaControlChannelDidUpdateStatus: ( GCKMediaControlChannel *)  mediaControlChannel
optional

Called when updated player status information is received.

Parameters
mediaControlChannel
The channel.
- (void) mediaControlChannelDidUpdateQueue: ( GCKMediaControlChannel *)  mediaControlChannel
optional

Called when updated queue status information is received.

Parameters
mediaControlChannel
The channel.
- (void) mediaControlChannelDidUpdatePreloadStatus: ( GCKMediaControlChannel *)  mediaControlChannel
optional

Called when updated preload status is received.

Parameters
mediaControlChannel
The channel.
- (void) mediaControlChannelDidUpdateMetadata: ( GCKMediaControlChannel *)  mediaControlChannel
optional

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.
- (void) mediaControlChannel: ( GCKMediaControlChannel *)  mediaControlChannel
requestDidFailWithID: (NSInteger)  requestID
error: ( GCKError *)  error
optional

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 .
Create a Mobile Website
View Site in Mobile | Classic
Share by: