<GCKRemoteMediaClientAdInfoParserDelegate> 协议
用于从媒体状态中解析广告插播时间点信息的代理协议。
- Deprecated:
- 将来会引入新的 API。
- 辛塞
- 3.0
此类继承 <NSObject>。
允许代理根据当前的媒体状态来确定接收者是否在播放广告。
- Parameters
-
client | The client. |
mediaStatus | The current media status. |
- 返回
- 如果接收者当前正在播放广告,则为“是”,否则为“否”。
允许此代理来确定当前内容中的广告插播时间点列表。
- Parameters
-
client | The client. |
mediaStatus | The current media status. |
- 返回
- GCKAdBreakInfo 对象数组,表示此内容的广告插播时间点;如果没有广告插播时间点,则为 nil。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-06。
[null,null,["最后更新时间 (UTC):2022-12-06。"],[[["The `GCKRemoteMediaClientAdInfoParserDelegate` protocol allows developers to customize ad break parsing from media status updates."],["This protocol is deprecated and a new API will be introduced in the future."],["Developers can implement delegate methods to determine if an ad is playing and to provide a list of ad breaks in the content."],["The protocol offers two optional methods: `remoteMediaClient:shouldSetPlayingAdInMediaStatus:` and `remoteMediaClient:shouldSetAdBreaksInMediaStatus:`."]]],["This document details the `GCKRemoteMediaClientAdInfoParserDelegate` protocol, which allows for parsing ad break data from media status. The protocol's key functions are: determining if an ad is currently playing via `shouldSetPlayingAdInMediaStatus:`, which returns a boolean, and identifying the list of ad breaks in the current media using `shouldSetAdBreaksInMediaStatus:`, returning an array of `GCKAdBreakInfo` objects. Both methods use `GCKRemoteMediaClient` and `GCKMediaStatus` parameters. Note that it's a deprecated API.\n"]]