InstreamAdPlayer
@objc(YMAInstreamAdPlayer)
public protocol InstreamAdPlayer
This protocol is used for playing instream ads.
Delegate object. For each event that happend during the playback, the corresponding callback must be called on this object.
Declaration
Swift
weak var delegate: InstreamAdPlayerDelegate? { get set }
Indicates whether the player is playing an ad.
Declaration
Swift
var isPlaying: Bool { get }
Prepares player to play passed media file.
Declaration
Swift
func prepareAd(with videoAd: VideoAd)
Parameters
videoAd | Object providing information about current advertising. This object should be passed back in all callbacks to InstreamAdPlayerDelegate. |
videoAd | Object providing information about current advertising. This object should be passed back in all callbacks to InstreamAdPlayerDelegate. |