Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9bedaca0
authored
Nov 25, 2020
by
andrewlewis
Committed by
Ian Baker
Nov 30, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fix ad progress updates after rebuffering an ad
Issue: #8239 PiperOrigin-RevId: 344211877
parent
41d6c269
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
RELEASENOTES.md
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
RELEASENOTES.md
View file @
9bedaca0
...
...
@@ -45,6 +45,9 @@
(
[
#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 a bug that caused ad progress not to be updated if the player
resumed after buffering during an ad
(
[
#8239
](
https://github.com/google/ExoPlayer/issues/8239
)
).
*
Fix passing an ads response to the
`ImaAdsLoader`
builder.
*
Set the overlay language based on the device locale by default.
*
Cronet extension:
...
...
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ImaAdsLoader.java
View file @
9bedaca0
...
...
@@ -1243,6 +1243,7 @@ public final class ImaAdsLoader
private
void
handlePlayerStateChanged
(
boolean
playWhenReady
,
@Player
.
State
int
playbackState
)
{
if
(
playingAd
&&
imaAdState
==
IMA_AD_STATE_PLAYING
)
{
if
(!
bufferingAd
&&
playbackState
==
Player
.
STATE_BUFFERING
)
{
bufferingAd
=
true
;
AdMediaInfo
adMediaInfo
=
checkNotNull
(
imaAdMediaInfo
);
for
(
int
i
=
0
;
i
<
adCallbacks
.
size
();
i
++)
{
adCallbacks
.
get
(
i
).
onBuffering
(
adMediaInfo
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment