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
b9b30c46
authored
Sep 14, 2022
by
Vishnu Chilakala
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Do not send content complete if any midroll is skipped
parent
ab4d37f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/AdTagLoader.java
extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/AdTagLoader.java
View file @
b9b30c46
...
@@ -1122,12 +1122,17 @@ import java.util.Map;
...
@@ -1122,12 +1122,17 @@ import java.util.Map;
}
}
private
void
ensureSentContentCompleteIfAtEndOfStream
()
{
private
void
ensureSentContentCompleteIfAtEndOfStream
()
{
if
(!
sentContentComplete
&&
contentDurationMs
!=
C
.
TIME_UNSET
if
(
sentContentComplete
&&
pendingContentPositionMs
==
C
.
TIME_UNSET
||
contentDurationMs
==
C
.
TIME_UNSET
&&
getContentPeriodPositionMs
(
checkNotNull
(
player
),
timeline
,
period
)
||
pendingContentPositionMs
!=
C
.
TIME_UNSET
)
{
+
THRESHOLD_END_OF_CONTENT_MS
return
;
>=
contentDurationMs
)
{
}
long
contentPeriodPositionMs
=
getContentPeriodPositionMs
(
checkNotNull
(
player
),
timeline
,
period
);
int
pendingAdGroupIndex
=
adPlaybackState
.
getAdGroupIndexAfterPositionUs
(
contentPeriodPositionMs
,
contentDurationMs
);
if
(!
adPlaybackState
.
getAdGroup
(
pendingAdGroupIndex
).
shouldPlayAdGroup
()
&&
contentPeriodPositionMs
+
THRESHOLD_END_OF_CONTENT_MS
>=
contentDurationMs
)
{
sendContentComplete
();
sendContentComplete
();
}
}
}
}
...
...
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