IMA extension: catch WebView exceptions
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
### ExoPlayer Version
2.15.1
### Devices that reproduce the issue
All devices which does not have WebView or disabled it
### Devices that do not reproduce the issue
_No response_
### Reproducible in the demo app?
Yes
### Reproduction steps
Play samples with ads using ima extension
### Expected result
When WebView is not available, we expect player to skip the ads, since WebView is only needed for playing ads and not the actual video.
### Actual result
Playback crashed with the exception `android.util.AndroidRuntimeException: android.webkit.WebViewFactory$MissingWebViewPackageException: Failed to load WebView provider: No WebView installed`
### Media
Not applicable
### Bug Report
- [ ] You will email the zip file produced by `adb bugreport` to dev.exoplayer@gmail.com after filing this issue.
Contributor guide
Assessment
This issue has not been assessed yet.