AdStreamManagerDelegate
@objc(AASDKAdStreamManagerDelegate)
public protocol AdStreamManagerDelegateThe AdStreamManagerDelegate protocol defines the methods used to retrieve information about ads and companion banners inserted server-side.
- 
                  
                  Notifies when an ad stream is about to start playing. DeclarationSwift func adStreamManager(_ adstreamManager: AdStreamManager, willStartPlaying url: URL)ParametersadstreamManagerowner urlthe URL to play from 
- 
                  
                  An ad break was detected. DeclarationSwift func adStreamManager(_ adstreamManager: AdStreamManager, adBreakStarted manager: AdManager)ParametersadstreamManagerowner managerthe ad manager object that will handle the ad break 
- 
                  
                  Notifies of changes in the ad stream manager. DeclarationSwift func adStreamManager(_ adstreamManager: AdStreamManager, stateChanged state: MediaPlayerStatus)ParametersadstreamManagerowner statethe current state of the player playing the stream 
- 
                  
                  An ad break has ended. DeclarationSwift func adStreamManager(_ adstreamManager: AdStreamManager, adBreakEnded manager: AdManager)ParametersadstreamManagerowner managerthe ad manager object that managed the ad break 
- 
                  
                  Metadata has changed in the player. DeclarationSwift func adStreamManager(_ adstreamManager: AdStreamManager, metadataChanged metadata: [AVMetadataItem])ParametersadstreamManagerowner metadatathe data that changed 
- 
                  
                  The ad stream is about to reconnect if the ad break was skipped or another ad was inserted in the ad break, and thus the stream has shifted. DeclarationSwift func adStreamManagerWillReconnect(_ adstreamManager: AdStreamManager)ParametersadstreamManagerowner 
- 
                  
                  Called when the stream is played with an external player and the AdStreamManagerdecides to pause content. When this gets called, you should pause the stream content.DeclarationSwift func adStreamManagerPlayerShouldPause(_ adstreamManager: AdStreamManager)ParametersadstreamManagerowner 
- 
                  
                  Called when the stream is played with an external player and the AdStreamManagerdecides to resume content. When this gets called, you should resume the stream content.DeclarationSwift func adStreamManagerPlayerShouldResume(_ adstreamManager: AdStreamManager)ParametersadstreamManagerowner 
- 
                  
                  Notifies when the ad stream has downloaded the DVR metadata. May be nil which suggests that an error occured. DeclarationSwift @objc optional func adStreamManager(_ adstreamManager: AdStreamManager, didReceive dvrMetadata: AdStreamDVRMetadata?)ParametersadstreamManagerowner dvrMetadatametadata for stream 
