AdErrorEvent
@objcMembers
@objc(BMPAdErrorEvent)
open class AdErrorEvent : PlayerEvent, @unchecked Sendable
See PlayerListener
for more information on this event.
Possible error codes for AdErrorEvent
when using ads with AdSourceType.bitmovin
:
During ad loading and parsing:
Code | Description |
---|---|
100 | The ad response was not recognized as a valid VAST ad. |
302 | The maximum number of VAST wrapper redirects has been reached. |
400 | There was an error playing the video ad. |
During ad playback:
See PlayerErrorEvent
and SourceErrorEvent
for more information on possible error codes.
All other error codes are provided by OS frameworks such as CoreMedia
, AVFoundation
, CFNetworking
etc.
These error codes can be negative values and many of them are not documented by Apple.
Possible error codes for AdErrorEvent
when using ads with AdSourceType.ima
:
-
The error code.
Declaration
Swift
@available(*, deprecated, renamed: "errorCode", message: "Use the `errorCode` property instead.") public let code: Int
-
The raw error code represented as Integer. See documentation of
AdErrorEvent
for possible error codes.Declaration
Swift
public let errorCode: Int
-
Message associated with the error event.
Declaration
Swift
public let message: String
-
The AdConfig of the related ad.
Declaration
Swift
public let adConfig: AdConfig?
-
Declaration
Swift
override public var name: String { get }
-
Declaration
Swift
public convenience init( adItem: AdItem?, code: Int, message: String, adConfig: AdConfig? )
-
Declaration
Swift
public init( adItem: AdItem?, errorCode: Int, message: String, adConfig: AdConfig? )