@expo/serve-sim 0.1.42 → 0.1.44
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 +11 -3
- package/dist/middleware.js +3 -3
- package/dist/native/serve-sim-native.node +0 -0
- package/dist/serve-sim.js +73 -73
- package/package.json +1 -1
- package/src/stream-settings.ts +5 -2
package/README.md
CHANGED
|
@@ -15,10 +15,12 @@ https://github.com/user-attachments/assets/fbf890f4-c8c7-4684-82be-d677b8a188f8
|
|
|
15
15
|
|
|
16
16
|
## Features
|
|
17
17
|
|
|
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.
|
|
@@ -92,7 +94,7 @@ Options:
|
|
|
92
94
|
--video-bitrate <bits-per-second>
|
|
93
95
|
H.264/WebRTC target bitrate
|
|
94
96
|
--video-fps <fps>
|
|
95
|
-
H.264/WebRTC frame rate (1-
|
|
97
|
+
H.264/WebRTC frame rate (1-140)
|
|
96
98
|
--list [device] List running streams
|
|
97
99
|
--kill [device] Kill running stream(s)
|
|
98
100
|
|
|
@@ -112,6 +114,12 @@ 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
|
+
While a peer is connected, one absolute-cadence publisher continuously submits
|
|
118
|
+
the latest captured frame at the configured `--video-fps`. SimulatorKit change
|
|
119
|
+
callbacks are supplemented by a 60 Hz IOSurface seed poll; that poll is a
|
|
120
|
+
fallback cadence, not a capture FPS ceiling. The libwebrtc
|
|
121
|
+
source adapter uses a 1,000 FPS safety ceiling and the RTP sender has no separate
|
|
122
|
+
FPS cap, so neither can phase-collide with the publisher cadence.
|
|
115
123
|
Multiple WebRTC viewers can use the same simulator simultaneously. They share
|
|
116
124
|
one SimulatorKit capture source, while each viewer has an independent peer
|
|
117
125
|
connection, encoder, congestion controller, and helper WebSocket. HTTP streams
|