mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
Fix buildForAdsResponse
PiperOrigin-RevId: 340198099
This commit is contained in:
parent
c1dc802050
commit
4289112947
2 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,7 @@
|
|||
([#7832](https://github.com/google/ExoPlayer/issues/7832)).
|
||||
* Fix a bug that caused multiple ads in an ad pod to be skipped when one
|
||||
ad in the ad pod was skipped.
|
||||
* Fix passing an ads response to the `ImaAdsLoader` builder.
|
||||
|
||||
### 2.12.1 (2020-10-23) ###
|
||||
|
||||
|
|
|
|||
|
|
@ -458,7 +458,8 @@ public final class ImaAdsLoader
|
|||
adTagUri != null
|
||||
? new DataSpec(adTagUri)
|
||||
: adsResponse != null
|
||||
? new DataSpec(Util.getDataUriForString(adsResponse, "text/xml"))
|
||||
? new DataSpec(
|
||||
Util.getDataUriForString(/* mimeType= */ "text/xml", /* data= */ adsResponse))
|
||||
: null;
|
||||
adTagDataSpec = EMPTY_AD_TAG_DATA_SPEC;
|
||||
supportedMimeTypes = ImmutableList.of();
|
||||
|
|
|
|||
Loading…
Reference in a new issue