Skip to content

Commit 2650e11

Browse files
docs(devices): clarify MJPEG image ownership on restart
1 parent 69addbf commit 2650e11

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎packages/client-runtime/src/device/stream.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ export class AvccDemuxer {
207207
export interface DeviceStreamClient {
208208
readonly start: () => void;
209209
readonly stop: () => void;
210-
/** Attach the displayed MJPEG image; the client owns its source and frame/error observation. */
210+
/**
211+
* Own the displayed MJPEG image's source and frame/error observation.
212+
* `stop()` detaches it; attach a fresh image for each restart.
213+
*/
211214
readonly setMjpegImage: (image: HTMLImageElement | null) => void;
212215
/** Normalized 0..1 coordinates in the displayed frame. */
213216
readonly sendTouch: (phase: "begin" | "move" | "end", x: number, y: number) => void;

0 commit comments

Comments
 (0)