<GCKRemoteMediaClientAdInfoParserDelegate> Protocol
Stay organized with collections
Save and categorize content based on your preferences.
The delegate protocol for parsing ad break information from a media status.
- Deprecated:
- A new API will be introduced in the future.
- Since
- 3.0
Inherits <NSObject>.
Allows the delegate to determine whether the receiver is playing an ad or not, based on the current media status.
- Parameters
-
client | The client. |
mediaStatus | The current media status. |
- Returns
- YES if the receiver is currently playing an ad, NO otherwise.
Allows the delegate to determine the list of ad breaks in the current content.
- Parameters
-
client | The client. |
mediaStatus | The current media status. |
- Returns
- An array of GCKAdBreakInfo objects representing the ad breaks for this content, or nil if there are no ad breaks.
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 `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"]]