Skip to content

feat: capture-chunk reassembly + screencast API (v2.36.2) - #19

Merged
iWedmak merged 5 commits into
masterfrom
feature/sdk-capture-chunk-reassembly
Aug 15, 2026
Merged

feat: capture-chunk reassembly + screencast API (v2.36.2)#19
iWedmak merged 5 commits into
masterfrom
feature/sdk-capture-chunk-reassembly

Conversation

@iWedmak

@iWedmak iWedmak commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

capture-chunk reassembly + public screencast API

Reassembles fragmented video frames from the provider capture channel.

  • Reassemble capture-chunk fragments (CHUNK_SIZE=48e3, out-of-order channel) by frameId/seq, JSON.parse → normal frame pipeline
  • Keep single video-frame (≤48KB) backward compatible
  • Public API: Browser.on_capture_frame(), start_screencast(), stop_screencast()
  • Prune partial frameId buffers after 5s
  • Tests: capture-chunk unit + existing suite pass
  • E2E: real provider, 11 frames >48KB delivered, valid JPEG
  • Version: 2.36.2

ceki-plugin added 5 commits August 15, 2026 14:39
Mirror the extension's CaptureChunkReassembler: buffer capture-chunk
fragments per frameId on the ceki-capture data channel, reassemble in
seq order (the capture DC is ordered:false), prune incomplete frames
after 5s, and deliver the reconstructed frame via on_capture_data.
Small frames keep the existing single video-frame wire format.
…eencast/stop_screencast

Wire transport.on_capture_data in _init_p2p/_init_p2p_from_offer and route
video-frame messages from the ceki-capture DC into Browser.on_capture_frame
callbacks. Public API: on_capture_frame(cb), async start_screencast(**params),
async stop_screencast() — mirror CDP Page.startScreencast semantics.
@iWedmak
iWedmak merged commit 2c39e6c into master Aug 15, 2026
0 of 3 checks passed
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.

1 participant