Studio Preview adds a dial bar below the device screen for the manifest's knob.ccw, knob.press and knob.cw actions. Each button dispatches its declared event with null context; unassigned actions and busy previews are disabled. The screen remains 854x480 and has no product-photo background. Preview, Vibe, CLI and MCP fixture events remain simulated and never control the computer.
knob.ccw
knob.press
knob.cw
null
On macOS, the native simulator attached to an enabled, permission-granted plugin sends HID events to the local computer without requiring a physical Dock. The same ctx.hid API, manifest grants, writable event permissions and rate limits apply. Only live simulator events use this backend; physical Dock events retain the USB route. Closing the session or revoking grants prevents new input, and uncertain results are never replayed.
ctx.hid
With macOS Accessibility access, volume up/down and mute send paired system media keys through the login session, allowing macOS to display its normal volume HUD like a physical Dock. Without Accessibility access, volume uses a CoreAudio fallback on the default output (1/16 steps and mute toggle), which changes volume without the system HUD; fixed-volume outputs return unsupported on this fallback. Playback media keys, keyboard shortcuts and mouse input require macOS Accessibility access for Studio in System Settings > Privacy & Security > Accessibility. Keyboard input affects current focus; mouse clicks use the current pointer. stop and unmapped physical keys return unsupported. Other platforms currently return unsupported for local simulator input. Success reports submission, not confirmation that the receiving app acted. This is local OS input emulation, not an emulated USB peripheral or a firmware compatibility test.
unsupported
stop
This guide explains the media SDK surfaces with complete examples. Normative limits are in the plugin contract (Streaming Photos, Large Data Transport, Video Playback and Canvas And Submitted Frames). Protocol details, device measurements and physical test procedures are kept in the repository's docs/plugin-hardware-verification.md.
docs/plugin-hardware-verification.md
Use ctx.url.open(url, {signal}) from a user event with the url.open grant to open an HTTP/HTTPS link in the default browser. Network fetch access is separate; previews simulate success. See the plugin contract for URL validation, rate limits and failure results.
ctx.url.open(url, {signal})
url.open
Physical Dock ctx.hid.consumer('brightnessUp' | 'brightnessDown', {signal}) uses the existing hid.consumer grant and exact firmware command capabilities. Steps affect compatible computer displays, not the Dock backlight. No absolute percentage, display selection or external-monitor support is guaranteed. Physical USB HID needs no macOS Accessibility grant; local simulator support is separate.
ctx.hid.consumer('brightnessUp' | 'brightnessDown', {signal})
hid.consumer
Photos (ctx.images), local video (ctx.video) and host-rendered frames (ctx.frames) all draw into the plugin's single stream: true image primitive. It needs integer dimensions of at most 854x408 below the 72 px header and a packaged PNG fallback in asset; assetBind and variants cannot share the stream viewport. Starting one producer replaces the others, and old asynchronous work cannot overwrite the new one.
ctx.images
ctx.video
ctx.frames
stream: true
asset
assetBind
variants
{"type":"image","x":0,"y":72,"w":854,"h":408,"asset":"assets/empty.png","stream":true}
Desktop reads, decodes and scales media; the Dock receives pixels in RAM without saving photo or video files to Flash, SD or a persistent cache. Client exit, plugin stop, view exit, detected disconnection or lease expiry releases the image. Back or plugin switching ends only the device view: hardware decoder/DMA, images, animations, fonts, upload buffers and stale events are released, and pending host transfers and timers are cancelled. The host plugin remains Running with its timers, connections and latest state. Reopening creates a new view session. Installed catalog entries, icons and native layouts remain resident; shared system display buffers are not plugin-owned.
Large payloads use the host's prefer-bulk policy: negotiated USB Bulk OUT with CDC fallback, while controls and acknowledgements stay on CDC. Plugins need no USB code, permission or manifest field. Await submissions and never put image bytes in ctx.publish or ctx.store.
prefer-bulk
ctx.publish
ctx.store
Declare images.read. Successive images.show calls keep the current image A while image B loads and transfers, replacing it only after complete arrival; a failure keeps A. Do not clear between slides. Add "animation":{"type":"fade","duration":600,"from":0,"to":1,"repeat":false} to the stream image for A/B crossfades in normal and fullscreen views; the old image is released afterwards. An explicit clear, stop or view exit restores the fallback. Pass {animate:false} to show for rapid navigation without the configured animation.
images.read
images.show
"animation":{"type":"fade","duration":600,"from":0,"to":1,"repeat":false}
{animate:false}
show
export async function activate(ctx) { let photos = [], index = 0; const publish = () => ctx.publish({ caption: photos[index]?.name ?? '', count: photos.length, index }); await publish(); if (ctx.config.fixture) await ctx.images.show({ asset: 'assets/sample.png' }); ctx.on('photos.choose', async ({ signal }) => { const selection = await ctx.images.choose(); if (selection.length) { photos = selection; index = 0; await ctx.images.show({ id: photos[0].id }, { fit: 'contain', signal }); await publish(); } return { ok: true }; }); ctx.on('photos.next', async ({ signal }) => { if (photos.length) { index = (index + 1) % photos.length; await ctx.images.show({ id: photos[index].id }, { fit: 'contain', signal }); await publish(); } return { ok: true }; }); }
Provide full event, configuration and state schemas. Pick files only from user events, never automatically at startup. Selection permits at most 200 PNG/JPEG files, 20 MiB and 32 megapixels each. Plugins receive runtime-scoped IDs and filenames, not paths, raw bytes or arbitrary file access. IDs expire on stop or the next successful selection; cancellation returns [] and preserves the previous album. Do not persist IDs across runtimes.
[]
After showing a photo, predecode up to two neighbours with ctx.images.prefetch([previousSource, nextSource], {fit, signal}).catch(() => {}); never block navigation on prefetch. The host caches at most three decoded images and rechecks grants, identity, size and modification time on reuse. Foreground changes take priority over queued prefetch. Clear, rescan, reselection and stop invalidate the cache.
ctx.images.prefetch([previousSource, nextSource], {fit, signal}).catch(() => {})
With firmware advertising bulkTransport.imageFrameMaxBytes, each photo is one binary BGRA frame without Base64 or chunk-by-chunk acknowledgements; firmware validates length, view and SHA-256, then acknowledges once over CDC. Older firmware or unavailable Bulk uses the compatible chunked transport. Preview PNG/Base64 encodings are generated only when a preview requests them. A resolved show() means the host prepared the frame, not that the device displayed it. Physical display requires firmware advertising the volatile imageStream capability; the device holds at most the displayed and incoming frames (plus a fading previous image), swaps after SHA-256 validation and clears on view exit, detected disconnect or lease expiry. There is no offline album, image persistence or resume across connections.
bulkTransport.imageFrameMaxBytes
show()
imageStream
Declare folders under the manifest's host to generate native selectors in the plugin's Settings, rather than schema path inputs:
host
{ "host": { "entry": "host.mjs", "sdk": "1.0.0", "permissions": ["images.read"], "imageFolders": [{ "id": "album", "label": "Photo folder" }] } }
Merge this fragment into the existing manifest, retaining other fields and permissions. Configuration only needs preferences such as includeSubfolders (boolean, default false) and intervalSeconds (integer, minimum and default five). Folder selectors need no custom schema type or format.
includeSubfolders
intervalSeconds
Desktop stores installation-scoped grants with a canonical path, directory identity and, for Mac App Store builds, a security-scoped bookmark. Plugins use only the declared folder ID. Selection, replacement and removal save immediately and restart enabled plugins. Cancellation preserves the grant; client restart and ordinary settings changes retain it. Removing a binding, revoking access or uninstalling removes it. Package updates retain only declared bindings and still require permission review.
async function readAlbum(ctx) { const photos = []; let cursor; do { const page = await ctx.images.list('album', { recursive: ctx.config.includeSubfolders === true, limit: 200, ...(cursor ? { cursor } : {}), signal: ctx.signal, }); photos.push(...page.photos); cursor = page.nextCursor; } while (cursor); return photos; }
List during live activation and display with images.show({id: photos[index].id}). Use a serial slideshow timer, cancel it with ctx.signal and prefer at least five seconds per image. Relist without a cursor after a slideshow cycle to discover additions. Pages share one snapshot; a new scan invalidates previous photo IDs but preserves the folder grant.
images.show({id: photos[index].id})
ctx.signal
At most four folders may be declared. A scan permits 5,000 photos, 20,000 examined entries and depth 16; pages hold at most 200 entries, also bounded by reply bytes. Default scanning is non-recursive; expose a boolean setting for recursion. Hidden entries, symlinks, non-PNG/JPEG files, empty files and files over 20 MiB are skipped. Scan overflow returns quota_exceeded; invalid image contents can still fail on show.
quota_exceeded
A missing selection returns permission_denied; absent, replaced or unreadable folders return unavailable; empty folders return empty arrays. Handle these without failing startup, and ask the user to reselect moved or replaced folders. Fixture list always returns empty data and never reads granted folders; use packaged sample PNGs. No folder metadata or original files reach the Dock.
permission_denied
unavailable
list
The client uses Electron/Chromium to decode a user-selected local video and fit each frame into the stream viewport, then sends bounded baseline JPEG frames to the Dock. No video file is installed on the Dock. Playback is silent; source codec/container support depends on the bundled Chromium decoder (MP4/H.264 and WebM are suitable inputs). The V821 hardware decoder handles JPEG/MJPEG only. RTSP, HLS, DRM, network URLs, audio and device-local file playback are not supported.
Declare video.read, one image primitive with stream: true and a PNG fallback asset, and write events carrying video.read for the controls. The native picker grants one runtime an opaque selection ID, never a filesystem path.
video.read
const [video] = await ctx.video.choose(); if (video) await ctx.video.play({ id: video.id }, { fit: 'contain', loop: true, fps: 10 }); await ctx.video.pause(); await ctx.video.seek(12); // seconds, between zero and duration await ctx.video.resume(); const status = await ctx.video.status(); // state, position, duration, optional error await ctx.video.stop();
fit is contain (black letterbox) or cover; loop defaults to false; fps defaults to 10 and accepts 1-55. The requested frame rate is a ceiling, not a guaranteed panel refresh rate, and each firmware's advertised limit is respected. Pause keeps the last frame; stop restores the PNG fallback. Stop, runtime shutdown and permission revocation destroy the hidden decoder window and close local file streaming. Selection IDs expire on runtime shutdown or a new selection. The SDK operation signal cancels startup, while stop ends ongoing playback.
fit
contain
cover
loop
fps
Keep controls outside the video rectangle: unobstructed even-sized frames use the Dock's direct video layer, while overlapping primitives, hits or system overlays fall back to slower software composition. Firmware must advertise videoStream; firmware without it remains compatible with photo plugins but is incompatible with plugins requesting video.read.
videoStream
The bundled Video Player 1.0.1 follows source frames and device throughput automatically with a 50 fps ceiling and no manual frame-rate setting. A 24/30 fps source is not duplicated to reach 50; faster sources are sampled, and slow devices receive the latest available frame without an accumulated queue. Legacy saved fps settings are accepted but ignored. Fixture previews must use sample state and the fallback asset without prompting for local files; see apps/desktop/examples/video-player for live and fixture behavior, playback controls and dial seeking.
apps/desktop/examples/video-player
ctx.frames exposes the volatile BGRA/MJPEG transport to plugin code. Rendering runs in the client's Chromium sandbox; the Dock receives the JSON projection plus an image stream and does not run Canvas, browser code or plugin JavaScript. The frame dimensions match the stream viewport. fullscreen: true keeps the host-managed media-only fullscreen behavior with tap-anywhere exit.
fullscreen: true
export async function activate(ctx) { const info = await ctx.frames.start({ format: 'mjpeg', fps: 30 }); const canvas = ctx.frames.createCanvas(); const g = canvas.getContext('2d'); let timer; async function render() { if (ctx.signal.aborted) return; g.fillStyle = '#101713'; g.fillRect(0, 0, info.width, info.height); g.font = ctx.frames.font('system-medium', 24); Plugin text and Canvas font helpers automatically fall back to the bundled Noto Sans 2.015 phonetic subset (Regular, Medium and Bold), including all 96 IPA Extensions characters and common stress/length marks. Existing `system`, `system-medium`, `system-bold` and `digits` font IDs are unchanged; no custom font or permission is needed. Use current Studio and Dock App builds together. Complex combining-mark positioning is not guaranteed by the native renderer; verify narrow diacritics on the target display. Symbol icons continue to use the icon font. g.fillStyle = '#53d99a'; g.fillText('PexarBolt', 16, 36); ctx.frames.drawIcon(g, 'volume', 16, 80, 24); try { await ctx.frames.present(canvas, { signal: ctx.signal }); if (!ctx.signal.aborted) timer = setTimeout(render, 0); } catch (error) { if (!ctx.signal.aborted) ctx.log.warn(String(error)); } } await render(); return () => clearTimeout(timer); }
start({format?,fps?})
{id,width,height,format,fps,maxBytes}
createCanvas()
OffscreenCanvas
font(face?,size?)
system
system-medium
system-bold
digits
drawIcon(context,name,x,y,size?)
present(canvas,{signal?})
submit(Uint8Array | ArrayBuffer,{signal?})
status()
{stream,submitted,dropped}
stream
stop()
BGRA submissions have exactly width * height * 4 bytes; the host composites alpha onto black so preview, SDL and physical output agree. JPEG dimensions are checked before native decoding; the encoded size is bounded by maxBytes returned by frames.start: up to 128 KiB after explicit negotiation with updated firmware, or 32 KiB with legacy firmware/no physical capability. present() prioritizes JPEG quality at unchanged viewport dimensions, adapts quality only to the negotiated single-frame byte limit and periodically recovers quality as scenes simplify. If even minimum quality cannot fit, it retains the last image and returns {sequence:0,accepted:false}; continue the loop. Pre-encoded submit() still rejects malformed or oversized data.
width * height * 4
maxBytes
frames.start
present()
{sequence:0,accepted:false}
submit()
The maximum requested rate is 50 fps; BGRA is capped at 10 fps because its uncompressed transfers are much larger. Connected firmware may reduce the returned rate and size limits. These are ceilings, not guaranteed display rates. The stream uses a dedicated bounded binary IPC argument, not JSON state; ctx.publish still publishes ordinary state under its existing limits.
At most one frame is encoded and one newest frame waits. Replaced waiting frames resolve {sequence,accepted:false}; prepared frames resolve {sequence,accepted:true}. Acceptance means the host prepared the frame, not that the Dock acknowledged or displayed it. Device transport completes its current frame and retains only the newest waiting frame. Old stream IDs, wrong sizes, malformed JPEGs and submissions after stop are rejected. Call frames.start again before drawing after a media switch, and await an in-flight present() before restarting a drawing loop.
{sequence,accepted:false}
{sequence,accepted:true}
Drawing needs no permission; media, network, file and external-command access keep their own permissions. Firmware must accept frames for an active, dimension-matching stream viewport even when grants are empty or contain only store. Older firmware wrongly required images.read or video.read for every frame, leaving Canvas games on their fallback image; update that firmware instead of adding unrelated media permissions to a drawing-only plugin.
store
Chromium's Canvas API provides paths, curves, gradients, transforms, image drawing and text. Prefer the bundled fonts and named icons through the helpers above. GIF decoding can use Chromium ImageDecoder with authorized bytes (close decoded VideoFrames and the decoder); package projection assets remain PNG, and a GIF does not become a new JSON widget.
ImageDecoder
VideoFrame
ctx.http.readBytes({path,credential?,signal?}) returns {status,bytes,contentType} for a GET from the plugin's configured origin. It requires network and uses the same credential, redirect, cancellation, five-second timeout and 1 MiB response limits as http.request. It exposes no arbitrary URLs, filesystem paths or unrestricted fetch. HTTPS origins are supported; plain HTTP is limited to explicit localhost services.
ctx.http.readBytes({path,credential?,signal?})
{status,bytes,contentType}
network
http.request
fetch
A camera integration can read JPEG snapshots from an authorized HTTPS endpoint or a localhost gateway, decode them with createImageBitmap, draw onto the canvas and call present(). This is snapshot polling, not direct RTSP/HLS/multipart-MJPEG playback; those sources need a gateway or decoder that produces frames. The API does not open the computer's camera or microphone. Follow the camera resilience rules in reliability requirements. The repository's apps/desktop/examples/tp-link-camera plugin and its local bridge in apps/desktop/plugin-bridges/tp-link-camera are a complete snapshot-stream example with bounded buffering, independent discovery and player recovery.
createImageBitmap
apps/desktop/examples/tp-link-camera
apps/desktop/plugin-bridges/tp-link-camera
apps/desktop/examples/sdk-showcase (also dist/examples/sdk-showcase in the tools distribution) is an installable capability gallery:
apps/desktop/examples/sdk-showcase
dist/examples/sdk-showcase
Preview uses sample brokers for external effects. Live operations run only from explicit commands with the existing permission review; absent files or services appear as unavailable results. The default HTTP service is http://127.0.0.1:8787, with /snapshot.jpg and /status configurable in Settings. No credentials or camera service are bundled.
http://127.0.0.1:8787
/snapshot.jpg
/status
Set fullscreen: true, fullscreenFit: "cover" on the stream image to fill the entire 854x480 screen with centred cropping. Aspect ratio is preserved; the default contain keeps the whole frame. The normal viewport and frames.start dimensions do not change. Any explicit fullscreenFit value, including contain, requires the media.fullscreen.cover.v1 capability; omit the field to keep the default fit on older firmware, and update Desktop and the device App together.
fullscreen: true, fullscreenFit: "cover"
fullscreenFit
media.fullscreen.cover.v1
Game engines run in the Desktop browser sandbox, not on the Dock. Use a pinned, package-local browser ESM engine and bundle shader source locally; remote imports, runtime downloads, workers and eval are unavailable. frames.createCanvas() already owns a 2D context: give the engine a separate OffscreenCanvas with WebGL, render the scene, draw that surface onto the SDK canvas and await each frames.present() before advancing the loop.
frames.createCanvas()
frames.present()
For custom encoders, use the actual dimensions, fps and maxBytes returned by frames.start(), encode one JPEG at a time and await frames.submit(bytes, {signal}), adapting JPEG quality within the negotiated ceiling. Frame receipt means host acceptance, not proof of device display or a physical frame rate.
frames.start()
frames.submit(bytes, {signal})
Return promptly from activation and initialize geometry and textures in cancellable background work. Keep fixed geometry and reusable buffers, avoid a second engine render loop, and bound scene objects and particles. Stop timers and await pending rendering/encoding before disposing the scene, textures, engine and GPU context. Handle WebGL context loss and restoration. Verify shader compilation, GPU recovery, stop/restart and sustained live memory in the real sandbox; a static preview does not establish these properties.
ctx.hid.consumer(command, {signal?}) requires the separate hid.consumer permission and sends a real USB HID press and release from the connected Dock to its USB host: volumeUp, volumeDown, mute, playPause, nextTrack, previousTrack and stop. It does not inject software media keys or use a player's volume API. ctx.hid.keyboard and ctx.hid.mouse add shortcuts and pointer input under hid.keyboard and hid.mouse. Declare each permission in the manifest and on the event, mark HID events write: true, pass the event signal and check the returned EventResult. These are additive SDK 1.0.0 capabilities; existing packages remain valid. The contract's SDK Capabilities and Keyboard And Mouse sections contain complete examples.
ctx.hid.consumer(command, {signal?})
volumeUp
volumeDown
mute
playPause
nextTrack
previousTrack
ctx.hid.keyboard
ctx.hid.mouse
hid.keyboard
hid.mouse
write: true
EventResult
The plugin must have an active physical view with an unexpired lease; other plugin instances, disconnected devices and retired views cannot send input. {ok:true} confirms that press and release reports were written; it does not confirm OS or player behaviour or an absolute volume. Failures use offline, unsupported, unavailable, permission_denied, stale_event, invalid_event or overloaded. Lost replies or partial writes return an unknown outcome and must never be retried automatically. All HID calls share 20 calls/second. Vibe, CLI, MCP and fixture previews simulate every action without calling the physical router, and Host SDL does not advertise physical HID.
{ok:true}
offline
stale_event
invalid_event
overloaded
Music Lyrics reads the current macOS playback session. Open a player such as Apple Music and start playback before expecting song metadata. Empty-session controls are intentionally disabled. Version 1.4.4 maps dial rotation to volumeDown/volumeUp through ctx.hid.consumer, while press remains play/pause. Volume works independently of track metadata; previews simulate it. The added HID permission requires fresh user consent on upgrade. Key delivery does not prove the OS volume changed, and unknown outcomes are not retried.
ctx.hid.consumer
Updated V821 runtimes present eligible fullscreen NV21 streams through hardware crop/scaling. Native display-sized frames and pointer streams use the explicit capabilities described below. Animations, legacy fullscreen touch and overlapping system/UI content retain software composition. These are reusable rendering and transport capabilities, independent of any capture plugin.
Stream image primitives can opt into fullscreenOnStream:true together with stream:true and fullscreen:true. Requires media.fullscreen.auto.v1. The first valid frame opens fullscreen once, covering navigation and controls; pause retains it. Hold for one second to exit, or press Escape in the browser preview. Taps do not exit. Manual exit lasts until the stream clears; clearing restores controls and rearms the next session. Static fallback artwork never triggers entry. No new permission or SDK method is added.
fullscreenOnStream:true
stream:true
fullscreen:true
media.fullscreen.auto.v1
The requested fps is a ceiling. Canvas and local video use completed device image commit acknowledgements to reduce their production rate when transfers are slow, with 15% timing headroom and gradual recovery. Only the current transfer and newest waiting image are retained. frames.status().effectiveFps reports the host pacing ceiling, not measured screen refresh. Preview/SDL have no device acknowledgements and cannot predict physical throughput. Native viewport resolution is unchanged; there is no automatic downscaling to reach the requested fps. Bulk and CDC retain bounded writes, cancellation and existing fallback semantics.
frames.status().effectiveFps
New hosts request videoMaxBytes:131072 in plugin.capabilities; new firmware caps it at 128 KiB. Requests without this field retain 32 KiB, so old validators remain compatible. Reconnect after firmware updates. The V821 decoder uses a 256 KiB bounded compressed-input ring; update its matching Cedar libraries when building firmware. Larger frames require on-device memory/latency/endurance checks.
videoMaxBytes:131072
plugin.capabilities
A streaming image primitive can declare fullscreen:true, fullscreenTouch:"tap". Declare tap in events.schema.json with a read-only object context containing integer x, y, width, height and fullscreen:true. The host receives taps in original viewport pixels, independently of desktop zoom or fullscreen fit:
fullscreen:true, fullscreenTouch:"tap"
tap
events.schema.json
x
y
width
height
export async function activate(ctx) { return ctx.on('tap', async ({x, y, width, height}) => { // Hit-test the plugin's drawn buttons using these original canvas coordinates. }); }
The opt-in requires media.fullscreen.touch.v1; older firmware reports incompatible. Use only on the single streaming image primitive, with no image animation. Contain-mode black bars ignore taps; cover-mode coordinates account for center cropping. No exit button overlays the image. Hold the surface for at least one second and release to exit without emitting a plugin event; browser previews also support Esc. Ordinary fullscreen media still exits on any tap. Dock, native Simulator and browser preview follow the same event contract. Normal-mode tap still opens fullscreen; this API does not add drag, hover or multitouch. Existing event permissions, schemas, current-view identity and event-rate limits still apply.
media.fullscreen.touch.v1
The runtime retains CDC as a fallback when opening or probing the Bulk interface temporarily fails. Subsequent large-data requests and active-view renewals share one session-bound recovery probe, at most once every five seconds. There is no independent retry timer and no USB retry work when the connection is idle. Recovery first waits for the previous channel to close, validates the current session with a read-only probe and discards late results from a replaced session. Failed or uncertain writes are never replayed; only later requests may use a recovered channel. A persistent LIBUSB_ERROR_ACCESS still requires resolving OS/device interface access. Inspect dataTransfer.channel and increasing bulkBytesSent to confirm live recovery. This is a Host transport fix; plugin permissions, SDK APIs, CLI/MCP schemas and firmware capabilities are unchanged.
Set streamSize:"fullscreen" on a fullscreen stream primitive to produce native display-sized frames (854x480 on the current Dock). Requires media.fullscreen.native.v1 and updated Studio/Simulator/Dock builds. The normal node stays inside the 854x408 content area; frames.start() returns full-display dimensions and createCanvas() follows them. Prepared native MJPEG supports a 55 fps ceiling, baseline JPEG 4:2:0, header validation and binary Bulk without software decoding or Base64. Device checksum/decoder checks remain in force; previews and explicit BGRA fallback decode on demand. The Host negotiates imageMaxBytes:1639680; omitted requests retain the legacy 1393728-byte image/binary limit. Native pacing follows completed acknowledgements without extra headroom; one transfer and one newest pending frame remain bounded. Frame submissions have a separate 60-per-second admission bucket; other SDK data requests retain 100 per second. There is no automatic source-resolution downgrade. Preserve window aspect ratio and prepare letterboxing on the Host.
streamSize:"fullscreen"
media.fullscreen.native.v1
imageMaxBytes:1639680
Prepared binary MJPEG can negotiate videoStream.binaryChecksum:"crc32"; its metadata sets checksum:"crc32" and an eight-character lowercase hash. The Dock verifies CRC32 over the complete encoded frame before JPEG validation/decoding. SHA-256 remains the default for legacy paths and BGRA. Token, identity, epoch, active-view lease, sequence, dimension and allocation checks are unchanged. The checksum detects frame corruption; it is not an authentication credential.
videoStream.binaryChecksum:"crc32"
checksum:"crc32"
hash
A stream primitive can declare streamPointer:"pointer", stream:true and fullscreen:true. It requires media.pointer.v1. Declare an event accepting {phase,x,y,width,height,fullscreen}; phase is down/move/up/cancel and coordinates are integer source-frame pixels. The viewport maps containment/cover and ignores letterbox starts. Motion is bounded to 20 Hz; holds without movement toggle media fullscreen after one second and cancel the pointer. Fullscreen and nonfullscreen DMA/DE display remain eligible. Existing fullscreenTouch semantics are unchanged; it cannot be combined with streamPointer. Browser previews and native Simulator share the same event contract. CLI/MCP commands and SDK permissions are unchanged.
streamPointer:"pointer"
media.pointer.v1
{phase,x,y,width,height,fullscreen}
fullscreenTouch
streamPointer
An external window-capture companion may prepare native display-sized frames in both modes. Keep the normal video viewport separate from controls so the Dock can scale the decoded DMA picture without software composition. System/UI overlays retain the compatible software fallback.
OS input remains a separate, explicitly enabled companion capability. Resolve only the user-selected window, require Accessibility trust, ignore letterbox starts and release held input on cancel, pause, hide, lock, stop and owner shutdown. Pointer SDK events grant no OS access. Verify actual receiving-app state with owned test windows; transport acknowledgement alone does not prove that an app handled input. Companion-specific source, UI preferences, OS routing and compatibility tests belong in that independent plugin project; SDK, CLI and MCP interfaces stay generic.