enableMainContentDecodingDuringAds

Specifies whether the active source should be decoded during ads playback.

Some devices only support one hardware decoder and can't decode ads and main content in parallel. Disabling this option will allow ad playback on such devices at the cost of slower switch from ads to main content.

null enables automatic behavior: the player decodes the main content during ads, but if ad decoding fails, it will automatically disable main content decoding and emit PlayerWarningCode.MainContentDecodingDuringAdsDisabled.

true forces decoding the main content during ads and disables automatic switching. false always disables main content decoding during ads.

Default is true.