-
Notifications
You must be signed in to change notification settings - Fork 7
VPLAY-11600 IsEmptyPeriod() with checkIframe=false when using AAMP TSB #725
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
base: dev_sprint_25_2
Are you sure you want to change the base?
Conversation
Reason for Change: This needs fixing before we can fix VPLAY-11583 Summary of Changes: * Call IsEmptyPeriod() with checkIframe=false for AAMP TSB * Use aamp->rate instead of rate in IsEmptyPeriod() * Improve comments and parameters name for GetPeriodDuration() and GetPeriodEndTime() Test Procedure: Verify no regressions when using AAMP TSB Risk: Low Signed-off-by: Jose Fagundez <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the logic for checking empty periods in MPEG-DASH playback to support AAMP TSB (Time Shift Buffer) functionality. The key change introduces two new helper functions that centralize the decision of whether to check only iframe adaptations when determining if a period is empty. When using local AAMP TSB, the code now checks all adaptations regardless of playback rate, since the iframe track is not used in TSB mode.
Key Changes:
- Added
ShouldCheckOnlyIframeAdaptation()helper to encapsulate the logic for determining whether to check only iframe adaptations based on playback rate and TSB mode - Added
IsEmptyPeriod()wrapper that uses the new helper to call the underlying MPD parse helper - Replaced 30+ call sites throughout
fragmentcollector_mpd.cppto use the new centralized functions
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| fragmentcollector_mpd.h | Added declarations for two new helper functions: ShouldCheckOnlyIframeAdaptation() and IsEmptyPeriod() |
| fragmentcollector_mpd.cpp | Implemented the two new helper functions and refactored all call sites to use them instead of inline checks, centralizing TSB-aware logic |
| AampMPDParseHelper.h | Improved documentation for GetPeriodDuration(), GetPeriodEndTime(), and UpdateBoundaryPeriod() with detailed parameter descriptions |
| AampMPDParseHelper.cpp | Updated documentation for UpdateBoundaryPeriod() and GetPeriodEndTime() to clarify parameter meanings |
Address review comments made by Copilot Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
Address review comment made by Copilot Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
test/utests/tests/FragmentCollectorMpdTests/FragmentCollectorMpdTestCases.cpp
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated no new comments.
Reason for Change: Change necessary prior to fixing VPLAY-11583
Summary of Changes:
which returns false for AAMP TSB
Test Procedure: No regressions with AAMP TSB
Risk: Low