Commit 42891129 by andrewlewis Committed by Oliver Woodman

Fix buildForAdsResponse

PiperOrigin-RevId: 340198099
parent c1dc8020
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
([#7832](https://github.com/google/ExoPlayer/issues/7832)). ([#7832](https://github.com/google/ExoPlayer/issues/7832)).
* Fix a bug that caused multiple ads in an ad pod to be skipped when one * Fix a bug that caused multiple ads in an ad pod to be skipped when one
ad in the ad pod was skipped. ad in the ad pod was skipped.
* Fix passing an ads response to the `ImaAdsLoader` builder.
### 2.12.1 (2020-10-23) ### ### 2.12.1 (2020-10-23) ###
......
...@@ -458,7 +458,8 @@ public final class ImaAdsLoader ...@@ -458,7 +458,8 @@ public final class ImaAdsLoader
adTagUri != null adTagUri != null
? new DataSpec(adTagUri) ? new DataSpec(adTagUri)
: adsResponse != null : adsResponse != null
? new DataSpec(Util.getDataUriForString(adsResponse, "text/xml")) ? new DataSpec(
Util.getDataUriForString(/* mimeType= */ "text/xml", /* data= */ adsResponse))
: null; : null;
adTagDataSpec = EMPTY_AD_TAG_DATA_SPEC; adTagDataSpec = EMPTY_AD_TAG_DATA_SPEC;
supportedMimeTypes = ImmutableList.of(); supportedMimeTypes = ImmutableList.of();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment