Skip to content

send stream-start event to donstream when app tries to append data after EOS - #1718

Open
kkanag314 wants to merge 1 commit into
WebPlatformForEmbedded:wpe-2.46from
kkanag314:streammsnow
Open

send stream-start event to donstream when app tries to append data after EOS#1718
kkanag314 wants to merge 1 commit into
WebPlatformForEmbedded:wpe-2.46from
kkanag314:streammsnow

Conversation

@kkanag314

@kkanag314 kkanag314 commented Aug 18, 2026

Copy link
Copy Markdown

Test Procedure:

Root Cause:
During MediaSource reuse across ad/content transitions, the pipeline remained in EOS state after EOS was pushed. Since STREAM_START was not re-sent, subsequent CAPS and buffer pushes failed, causing the MediaSource to close and resulting in a green screen during stream transitions.

Fix Done:
Modified webKitMediaSrcLoop() to reset wasStreamStartSent on EOS and re-send STREAM_START when the MediaSource is reused. This allows the pipeline to recover from EOS state and correctly process new segments during period and ad transitions.

@modeveci
modeveci requested a review from eocanha August 19, 2026 10:18
@eocanha

eocanha commented Aug 20, 2026

Copy link
Copy Markdown
Member

I wonder if WebKit/WebKit@96f2c38, from upstream, might be a better solution for this problem. I'm going to explore backporting it to wpe-2.46 and check if that solves the problem.

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

Labels

Development

Successfully merging this pull request may close these issues.

3 participants