Skip to content

Multi period content support for AdsMediaSource #2501

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add java doc
  • Loading branch information
kotucz committed Jun 4, 2025
commit 2ba33bc0a05674e5b33c9b0600f62e3dd85416bb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,15 @@


/**
* A custom {@link Timeline} for sources that have AdPlaybackState split among multiple periods.
* A custom {@link Timeline} for sources that have {@link AdPlaybackState} split among multiple periods.
* <br/>
* For each period a modified {@link AdPlaybackState} is created for each period:
* <ul>
* <li> ad group time is offset relative to period start time </li>
* <li> ad groups after period end time are marked as skipped </li>
* <li> post-roll ad group is kept only for last period </li>
* <li> ad group count and indices are kept unchanged </li>
* </ul>
*/
@VisibleForTesting(otherwise = VisibleForTesting.PACKAGE_PRIVATE)
public final class MultiPeriodAdTimeline extends ForwardingTimeline {
Expand Down