Skip to content

RDKEMW-23786: Fix A/V freezes during progressive playback - #5209

Open
asurdej-comcast wants to merge 1 commit into
developfrom
feature/RDKEMW-23786_webkitwebsrc
Open

RDKEMW-23786: Fix A/V freezes during progressive playback#5209
asurdej-comcast wants to merge 1 commit into
developfrom
feature/RDKEMW-23786_webkitwebsrc

Conversation

@asurdej-comcast

Copy link
Copy Markdown
Contributor

Increase minimum queue size for small media files to reduce network reqests interrupts

Increase minimum queue size for small media files to reduce
network reqests interrupts
Copilot AI lite review requested due to automatic review settings August 20, 2026 08:54
@asurdej-comcast
asurdej-comcast requested review from a team as code owners August 20, 2026 08:54
@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/meta-rdk-video/5209/rdk/components/generic/rdk-oe/meta-rdk-video

  • Commit: c771ca7

Report detail: gist'

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the WPE WebKit 2.46.2 Yocto recipe to apply a new downstream patch that increases the effective buffering thresholds in webkitwebsrc, aiming to reduce pause/resume cycles (and resulting A/V freezes) during progressive playback of small-ish media resources.

Changes:

  • Bump WPE_RECIPE_REVISION to pick up a new downstream change.
  • Add and apply a new patch (1720_webkitwebsrc_queue_size.patch) adjusting webkitwebsrc queue watermark behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
recipes-extended/wpe-webkit/wpe-webkit_2.46.2.bb Bumps recipe revision and adds the new patch to SRC_URI.
recipes-extended/wpe-webkit/files/2.46.2/1720_webkitwebsrc_queue_size.patch Implements a minimum queue high watermark to reduce frequent download pause/resume cycles.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +30 to +35
+// Keep at most 2% of the full media resource buffered or 2MB for small files (<100MB).
+// When this threshold is reached, the download task is paused.
+// For files smaller than MIN_QUEUE_HIGH_WATERMARK, downloading won't be paused.
#define HIGH_QUEUE_FACTOR_THRESHOLD 0.02
+#define MIN_QUEUE_HIGH_WATERMARK (2 * 1024 * 1024)

Comment on lines +112 to +116
if (!members->haveSize || members->size != length) {
members->haveSize = true;
members->size = length;
+ members->queueHighWatermark = std::max<size_t>(length * HIGH_QUEUE_FACTOR_THRESHOLD, MIN_QUEUE_HIGH_WATERMARK);
}
@svc-rdkeportal01

Copy link
Copy Markdown

CCI-Build-Verified +1
sha: c771ca7

@svc-rdkeportal01

Copy link
Copy Markdown

CCI-Test-Verified +1
sha: c771ca7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants