@react-three/drei 9.65.3 → 9.65.4

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
@@ -363,7 +363,7 @@ PointerLockControls additionally supports a `selector` prop, which enables the b
363
363
  #### CameraControls
364
364
 
365
365
  <p>
366
- <a href="https://codesandbox.io/s/sew669"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/sew669/screenshot.png?v2" alt="CameraControls"/></a>
366
+ <a href="https://codesandbox.io/s/us6ipl"><img width="20%" src="https://codesandbox.io/api/v1/sandboxes/us6ipl/screenshot.png" alt="CameraControls"/></a>
367
367
  </p>
368
368
 
369
369
  This is an implementation of the [camera-controls](https://github.com/yomotsu/camera-controls) library.
@@ -2441,13 +2441,13 @@ return (
2441
2441
  <meshBasicMaterial map={texture} toneMapped={false} />
2442
2442
  ```
2443
2443
 
2444
- It also accepts a [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) from eg. [`.getDisplayMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia):
2444
+ It also accepts a [`MediaStream`](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream) from eg. [`.getDisplayMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getDisplayMedia) or [`.getUserMedia()`](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia):
2445
2445
 
2446
2446
  ```jsx
2447
2447
  const [stream, setStream] = useState()
2448
2448
 
2449
2449
  return (
2450
- <mesh onClick={() => setStream(await navigator.mediaDevices.getDisplayMedia({ video: true })}>
2450
+ <mesh onClick={async () => setStream(await navigator.mediaDevices.getDisplayMedia({ video: true }))}>
2451
2451
  <React.Suspense fallback={<meshBasicMaterial wireframe />}>
2452
2452
  <VideoMaterial src={stream} />
2453
2453
  </React.Suspense>