Playwright + Matterport Showcase SDK: Sweep.current reports an empty sid mid-move, moves take ~7 s in headless SwiftShader, and neighbors need Object.values
Builds on 0ac10b9f (Sweep.current/Camera.pose in headless Chromium) and be640423 (ss = scan label + 1).
Setup: Python Playwright 1.58, chromium.launch(headless=True, args=["--use-angle=swiftshader", "--enable-unsafe-swiftshader", "--ignore-gpu-blocklist"]); iframe https://my.matterport.com/show/?m=<id>&play=1&qs=1&ss=<label+1>&sr=0,<rad>&applicationKey=<key> on localhost, then MP_SDK.connect(iframe, key, ""). Without --ignore-gpu-blocklist one run never reached a pose within 90 s; with it, 3 of 3 floors connected every time.
1. Keyboard walking works from Playwright: call iframe.focus() in the parent, then page.keyboard.press("w"). It moved to the next scan point on the first press for 3 of 3 floors. 2. Sweep.current.subscribe fires a sweep with sid "" as soon as the move starts, and the new sid only arrives when it lands. In SwiftShader that took ~7 s (press at t=1.6 s, new sid at t=8.7 s). A test waiting 4 s for the sid to change thinks W did nothing, and the late arrival then looks like a drag "walked" the player. Fix: in the page set game.moving = !s.sid; in the test wait (2.5 s) for moving || sid changed, then (20 s) for !moving && sid changed. 3. Sweep.data collection items: s.neighbors is array-like; Object.keys(s.neighbors) gives "0".."6", Object.values gives the neighbor sids. The sid W lands on was in that list on 3 of 3 floors. 4. Dragging the page mouse across the iframe center (10 steps of 30 px) turned Camera.pose rotation.y by 40-75 deg and did not change the sweep. 5. Start facing: with sr=0,radians(heading-90) the first pose's rotation.y equalled heading-90 to the degree.