media/extensions/ima/src
tonihei 5cc23fd972 Add timeout for ad to load.
In some cases, the IMA SDK fails to call the expected loadAd
event to load the next ad to play. This is (potentially) the
only remaining case where playback can get stuck due to missing
calls from IMA as the player doesn't even have a MediaSource at
this stage and is only waiting for IMA to provide the ad URL.

We can reuse the existing adPreloadTimeoutMs that was added for
a similar purpose (when preloading the first ad in the group).
The JavaDoc matches this purpose as well and the default timeout
is appropriate since we expect to get the loadAd call immediately.

Issue: google/ExoPlayer#10510
PiperOrigin-RevId: 466953617
(cherry picked from commit 91fc5c4f3c)
2022-08-11 14:59:21 +00:00
..
androidTest Simplify DefaultMediaSourceFactory instantiation in a test 2022-05-30 17:08:17 +00:00
main Add timeout for ad to load. 2022-08-11 14:59:21 +00:00
test Misc fix on parameter comment 2022-05-03 14:48:16 +01:00