InstreamAdPlayer
@objc(YMAInstreamAdPlayer)
public protocol InstreamAdPlayerThis protocol is used for playing instream ads.
- 
                  
                  Delegate object. For each event that happened during the playback, the corresponding callback must be called on this object. DeclarationSwift weak var delegate: InstreamAdPlayerDelegate? { get set }
- 
                  
                  Indicates whether the player is playing an ad. DeclarationSwift var isPlaying: Bool { get }
- 
                  
                  Ad video duration in seconds. DeclarationSwift var duration: TimeInterval { get }
- 
                  
                  Ad video position in seconds. DeclarationSwift var position: TimeInterval { get }
- 
                  
                  Prepares player to play passed media file. DeclarationSwift func prepareAd(with videoAd: VideoAd)ParametersvideoAdObject providing information about current advertising. This object should be passed back in all callbacks to InstreamAdPlayerDelegate. 
- 
                  
                  Starts the ad. DeclarationSwift func playAd()
- 
                  
                  Pauses the ad. DeclarationSwift func pauseAd()
- 
                  
                  Resumes the ad. DeclarationSwift func resumeAd()
- 
                  
                  Stops the ad. DeclarationSwift func stopAd()
- 
                  
                  Sets ad player volume to the passed value. DeclarationSwift func setVolume(_ level: Double)Parameterslevellevel of volume to set. The value should be between 0 and 1. 
