Skip to content

Commit eac12e1

Browse files
fix(client): show the stream connecting again when MJPEG gives way to WebRTC
MJPEG may have shown frames already, so the switch left the status at streaming and the canvas blank until the first WebRTC frame. Co-Authored-By: Claude Fable 5.1 <[email protected]>
1 parent 69c9135 commit eac12e1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -977,6 +977,9 @@ export function createDeviceStreamClient(
977977
releaseImage = null;
978978
events.onCanvasVideo?.();
979979
}
980+
// MJPEG may have shown frames already: say the stream is connecting again
981+
// rather than leave a blank canvas until the first WebRTC frame.
982+
connecting("Switching to WebRTC.");
980983
void readIosWebRtc(settings);
981984
};
982985

0 commit comments

Comments
 (0)