adInfo property

AdInfoFromDash? adInfo
final

Provides information about advertisements embedded within a DASH video stream.

This property holds an AdInfoFromDash object when an advertisement event is detected during video playback. It is particularly relevant for DASH (Dynamic Adaptive Streaming over HTTP) streams that contain ad breaks. When the video player transitions to an ad segment, this property will be populated with metadata about the current advertisement, allowing the application to react to ad events (e.g., display an ad overlay, skip button, or other ad-related UI).

If no ad is currently playing or if the video stream does not support ad information, this property will be null. You can check hasAdInfo to determine if ad information is available.

Implementation

final AdInfoFromDash? adInfo;