AI-generated Key Takeaways
- 
          The RemoteMediaClient.ParseAdsInfoCallback interface is used to parse ads information from the custom data within the MediaStatus. 
- 
          It includes methods to parse a list of ad breaks and determine if an ad is currently playing. 
- 
          The parsed ad break information is used to display ad breaks on the SeekBar in the ExpandedControllerActivity. 
- 
          The boolean return value indicating if an ad is playing is used by the framework to render UIs. 
The callback interface for parsing ads information from the custom data inside the
      MediaStatus.
Public Method Summary
| abstract List<AdBreakInfo> | 
                  
                  parseAdBreaksFromMediaStatus(MediaStatus mediaStatus)
                   
                    Returns a list of  AdBreakInfoinstances, which contains information about a list of ads that is or will be
                    played on the receiver. | 
| abstract boolean | 
                  
                  parseIsPlayingAdFromMediaStatus(MediaStatus mediaStatus)
                   
                    Returns whether an ad is playing on the receiver.
                   | 
Public Methods
public abstract List<AdBreakInfo> parseAdBreaksFromMediaStatus (MediaStatus mediaStatus)
Returns a list of AdBreakInfo
            instances, which contains information about a list of ads that is or will be played on
            the receiver. An AdBreakInfo
            contains the position of the ad relative to the playback of the current media content.
            The returned value will be used by the framework to draw ad breaks on the
            SeekBar
            inside the 
            ExpandedControllerActivity.
Parameters
| mediaStatus | The current MediaStatus. | 
|---|
public abstract boolean parseIsPlayingAdFromMediaStatus (MediaStatus mediaStatus)
Returns whether an ad is playing on the receiver. The return value will be used by the framework to render various framework managed UIs to indicate that an ad is playing.
Parameters
| mediaStatus | The current MediaStatus. | 
|---|