AI-generated Key Takeaways
-
AdsRenderingSettings
defines parameters for controlling the rendering of ads, extending theAdsRenderingSettingsInterface
. -
The
constructor
creates a newAdsRenderingSettings
instance. -
Key properties include
autoAlign
for non-linear ad positioning,bitrate
for maximum recommended bitrate, andenablePreloading
for video asset preloading. -
The
loadVideoTimeout
property sets a timeout for loading video ad media files, andmimeTypes
allows specification of supported linear video MIME types. -
playAdsAfterTime
allows setting a time after which ad breaks will play, whilerestoreCustomPlaybackStateOnAdBreakComplete
controls whether the custom playback state should be restored, and there are also two properties for UI styling (useStyledLinearAds
&useStyledNonLinearAds
).
Constructors | |
---|---|
constructor
|
Constructor. |
Properties | |
---|---|
auto
|
Set to false if you want to have fine grained control over the positioning of all
non-linear ads.
Inherited from
|
bitrate
|
Maximum recommended bitrate.
Inherited from
|
enable
|
Enables preloading of video assets.
Inherited from
|
load
|
Timeout (in milliseconds) when loading a video ad media file.
Inherited from
|
mime
|
Only supported for linear video mime types.
Inherited from
|
play
|
For VMAP and ad rules playlists, only play ad breaks scheduled after this time (in
seconds).
Inherited from
|
restore
|
Specifies whether the SDK should record the state of the provided video element
before it is used for ads, and restore the state after the ads have completed.
Inherited from
|
ui
|
Specifies whether to display specific IMA UI elements.
Inherited from
|
use
|
Render linear ads with full UI styling.
Inherited from
|
use
|
Render non-linear ads with a close and recall button.
Inherited from
|
Constructors
constructor
new AdsRenderingSettings(): AdsRenderingSettings
Returns | |
---|---|
AdsRenderingSettings
|
Properties
autoAlign
autoAlign: boolean
bitrate
bitrate: number
-1
, means the SDK selects the maximum
bitrate.
enablePreloading
enablePreloading: boolean
loadVideoTimeout
loadVideoTimeout: number
mimeTypes
mimeTypes: string[]
playAdsAfterTime
playAdsAfterTime: number
restoreCustomPlaybackStateOnAdBreakComplete
restoreCustomPlaybackStateOnAdBreakComplete:
boolean
uiElements
uiElements: string[]
useStyledLinearAds
useStyledLinearAds: boolean
useStyledNonLinearAds
useStyledNonLinearAds: boolean