Type Method
pauseAdWithAdSources:
Creates a pause ad using the provided ad sources. Pause-ad presentation currently supports VAST sources configured with BMPAdSourceTypeBitmovin and containing a static PNG or JPEG non-linear resource. Schedule the returned item through BMPAdvertisingApi.scheduleAdItem:. Pause ads are not supported on visionOS. Pause ad items scheduled there are ignored. In Objective-C: \code BMPAdItem *item = [BMPAdItem pauseAdWithAdSources:@[adSource]]; [player.ads scheduleAdItem:item];
+ (BMPAdItem *) pauseAdWithAdSources:(NSArray<BMPAdSource *> *) sources;
Parameters
- sources
The ad sources to try in order.
Discussion
\endcodePause-ad APIs remain experimental in Objective-C, but there is no equivalent to Swift’s ExperimentalApi SPI import opt-in. The factory and non-linear lifecycle callbacks are available through the Objective-C API without that opt-in. Swift callers use AdItem(adSources:trigger:) with .pause after importing @_spi(ExperimentalApi) import BitmovinPlayerCore.