@expo/serve-sim 0.1.36 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -83,6 +83,16 @@ Options:
83
83
  TURN username
84
84
  --turn-credential <credential>
85
85
  TURN credential
86
+ --mjpeg-fps <fps>
87
+ MJPEG frame rate (1-120)
88
+ --mjpeg-quality <quality>
89
+ MJPEG quality (0.05-1)
90
+ --max-dimension <pixels>
91
+ Maximum captured width or height; 0 keeps native resolution
92
+ --video-bitrate <bits-per-second>
93
+ H.264/WebRTC target bitrate
94
+ --video-fps <fps>
95
+ H.264/WebRTC frame rate (1-120)
86
96
  --list [device] List running streams
87
97
  --kill [device] Kill running stream(s)
88
98
 
@@ -145,6 +155,10 @@ serve-sim camera --stop-webcam
145
155
 
146
156
  Multiple booted simulators are supported by passing several device names. With no device argument, serve-sim selects an existing stream, a booted simulator, or a default simulator to boot.
147
157
 
158
+ Supervisors can probe `GET /healthz` to confirm that the preview server is
159
+ listening and `GET /readyz` to wait until the selected simulator and native
160
+ capture session are ready. Both endpoints return JSON and disable caching.
161
+
148
162
  ### Camera
149
163
 
150
164
  `serve-sim camera <bundle-id>` replaces the simulator's camera feed for a single app. A small host-side helper writes BGRA frames into a POSIX shared-memory region; an injected dylib (`DYLD_INSERT_LIBRARIES`) swizzles AVFoundation inside the simulator process so the app reads from that region instead of the simulator's stub camera.