<GCKRemoteMediaClientListener> 协议
继承 <NSObjectNSObject>。
- (void) remoteMediaClient: |
|
(GCKRemoteMediaClient *) |
client |
didStartMediaSessionWithID: |
|
(NSInteger) |
sessionID |
|
|
| |
|
optional |
在接收器上启动新的媒体会话时调用。
- Parameters
-
client | The client. |
sessionID | The ID of the new session. |
在收到接收器更新后的媒体状态时调用。
- Parameters
-
client | The client. |
mediaStatus | The updated media status. The status can also be accessed as a property of the player. |
在从接收器收到更新后的媒体元数据时调用。
- Parameters
-
在接收设备上更新媒体播放队列时调用。
- Parameters
-
在接收器上更新媒体预加载状态时调用。
- Parameters
-
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-06。
[null,null,["最后更新时间 (UTC):2022-12-06。"],[[["The `GCKRemoteMediaClientListener` protocol defines methods to receive updates on media playback from a Cast receiver."],["These methods provide information about media sessions, status, metadata, queue, and preload status."],["This protocol is crucial for building Cast-enabled iOS applications that respond to changes in media playback on the receiver."],["All listener methods are optional and invoked on the main thread."],["Developers can implement these methods to update their app's UI and behavior based on the received information."]]],["The `GCKRemoteMediaClientListener` protocol defines methods for monitoring media playback on a Cast receiver. Key actions include receiving notifications when a new media session starts, indicated by a `sessionID`. It also handles updates regarding media status, metadata, the media playback queue, and the preload status, and it returns the media status, metadata or client information. These updates are triggered when changes occur on the receiver, and all of them require the client as parameter.\n"]]