media-id-reset.html 320 B

12345678910
  1. <script>
  2. const {ipcRenderer} = require('electron')
  3. navigator.mediaDevices.enumerateDevices().then((devices) => {
  4. return devices.map((device) => device.deviceId)
  5. .filter((deviceId) => deviceId !== "default")
  6. }).then((deviceIds) => {
  7. ipcRenderer.send('deviceIds', deviceIds)
  8. })
  9. </script>