enableYoutubeWebViewFallback property
Whether to automatically fallback to a WebView-based YouTube player if native playback initialization fails.
This is especially useful because youtube_explode_dart
, the package used
to extract YouTube stream URLs, can occasionally break due to changes in
YouTube's encryption or internal APIs. When this occurs, native stream playback may fail.
Enabling this fallback allows playback to continue using a standard embedded YouTube WebView, ensuring more robust behavior even if native stream extraction fails.
Defaults to true
.
Implementation
final bool enableYoutubeWebViewFallback;