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
85fb32d7
authored
Apr 18, 2023
by
bachinger
Committed by
Rohit Singh
Apr 18, 2023
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Use withLivePostrollPlaeholderAppended to add placeholder
PiperOrigin-RevId: 525177113
parent
07ff3eee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
libraries/exoplayer_ima/src/main/java/androidx/media3/exoplayer/ima/ImaServerSideAdInsertionMediaSource.java
libraries/exoplayer_ima/src/main/java/androidx/media3/exoplayer/ima/ImaServerSideAdInsertionMediaSource.java
View file @
85fb32d7
...
...
@@ -743,11 +743,9 @@ public final class ImaServerSideAdInsertionMediaSource extends CompositeMediaSou
contentMediaSourceFactory
.
createMediaSource
(
contentMediaItem
),
componentListener
);
this
.
serverSideAdInsertionMediaSource
=
serverSideAdInsertionMediaSource
;
if
(
isLiveStream
)
{
AdPlaybackState
liveAdPlaybackState
=
new
AdPlaybackState
(
adsId
)
.
withNewAdGroup
(
/* adGroupIndex= */
0
,
/* adGroupTimeUs= */
C
.
TIME_END_OF_SOURCE
)
.
withIsServerSideInserted
(
/* adGroupIndex= */
0
,
true
);
mainHandler
.
post
(()
->
setAdPlaybackState
(
liveAdPlaybackState
));
mainHandler
.
post
(
()
->
setAdPlaybackState
(
new
AdPlaybackState
(
adsId
).
withLivePostrollPlaceholderAppended
()));
}
prepareChildSource
(
/* id= */
null
,
serverSideAdInsertionMediaSource
);
}
...
...
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