AI-generated Key Takeaways
- 
          AdsRenderingSettings defines parameters controlling the rendering of ads. 
- 
          Key properties include controlling non-linear ad positioning with autoAlign, setting the maximum recommended bitrate withbitrate, and enabling preloading of video assets withenablePreloading.
- 
          Other properties allow setting a timeout for video ad media file loading with loadVideoTimeout, specifying supported MIME types withmimeTypes, and controlling ad playback based on time for VMAP and ad rules withplayAdsAfterTime.
- 
          Additional settings include restoring the video element state after ad breaks with restoreCustomPlaybackStateOnAdBreakComplete, displaying specific IMA UI elements withuiElements, and styling linear and non-linear ads withuseStyledLinearAdsanduseStyledNonLinearAds.
AdsRenderingSettingsInterface
      | 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