Hiyve Components - v1.0.0
    Preparing search index...

    Function loadDevices

    • Load device selections from localStorage.

      Parameters

      • storageKey: string

        The localStorage key to read from

      Returns SelectedDevices

      The saved device selections, or an empty object if none found

      const savedDevices = loadDevices('my-devices');
      // { videoInput: 'camera-id', audioInput: 'mic-id' }