@expo/serve-sim 0.1.43 → 0.1.45
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 +7 -1
- package/dist/middleware.js +46 -46
- package/dist/native/serve-sim-native.node +0 -0
- package/dist/serve-sim.js +78 -78
- package/package.json +1 -1
- package/src/stream-settings.ts +53 -1
package/README.md
CHANGED
|
@@ -18,7 +18,9 @@ https://github.com/user-attachments/assets/fbf890f4-c8c7-4684-82be-d677b8a188f8
|
|
|
18
18
|
- Low-latency SimulatorKit capture with a 60 Hz IOSurface seed poll and configurable WebRTC cadence.
|
|
19
19
|
- Swipe from the bottom to go home.
|
|
20
20
|
- gestures like pinch to zoom by holding the option key.
|
|
21
|
-
- Simulator logs are forwarded to the browser
|
|
21
|
+
- Simulator logs are forwarded to the browser console on local previews. Remote
|
|
22
|
+
previews disable this high-volume stream by default; append `?logs=1` to the
|
|
23
|
+
preview URL to opt in explicitly.
|
|
22
24
|
- Recent simulator actions are available in the browser tools panel and `serve-sim event-log`.
|
|
23
25
|
- Drag and drop videos and images to add them to the simulator device.
|
|
24
26
|
- Keyboard commands and hot keys are forwarded to the simulator, including CMD+SHIFT+H to go home.
|
|
@@ -112,6 +114,10 @@ WebRTC uses HTTP for SDP signaling and RTP for video. Simulator input and screen
|
|
|
112
114
|
metadata continue over the existing helper WebSocket. ICE prefers a direct UDP
|
|
113
115
|
path when one is reachable, even if the page was loaded through a tunnel URL;
|
|
114
116
|
TURN is used as a fallback when direct/STUN candidates fail.
|
|
117
|
+
Starting with `--transport webrtc` locks the preview to WebRTC for the lifetime
|
|
118
|
+
of the server. The UI exposes only WebRTC codec and encoder controls, the
|
|
119
|
+
settings API rejects HTTP-only controls, and the MJPEG/AVCC endpoints return
|
|
120
|
+
`409 stream_transport_locked` instead of opening tunneled screen streams.
|
|
115
121
|
While a peer is connected, one absolute-cadence publisher continuously submits
|
|
116
122
|
the latest captured frame at the configured `--video-fps`. SimulatorKit change
|
|
117
123
|
callbacks are supplemented by a 60 Hz IOSurface seed poll; that poll is a
|