feat: capture-chunk reassembly + screencast API (v2.36.2) - #19
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
capture-chunk reassembly + public screencast API
Reassembles fragmented video frames from the provider capture channel.
capture-chunkfragments (CHUNK_SIZE=48e3, out-of-order channel) by frameId/seq, JSON.parse → normal frame pipelinevideo-frame(≤48KB) backward compatibleBrowser.on_capture_frame(),start_screencast(),stop_screencast()