1.2.6 • Published 3 months ago

@solid-primitives/devices v1.2.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@solid-primitives/devices

turborepo size size stage

Creates a primitive to get a list of media devices (microphones, speakers, cameras). There are filtered primitives for convenience reasons.

Installation

npm install @solid-primitives/devices
# or
yarn add @solid-primitives/devices

How to use it

Media Devices

const devices = createDevices();

const microphones = createMicrophones();
const speakers = createSpeakers();
const cameras = createCameras();

The filtered primitives are build so that they only triggered if the devices of their own kind changed.

Device Motion

const accelerometer = createAccelerometer();
const gyroscope = createGyroscope();

Demo

You may view a working example here: https://primitives.solidjs.community/playground/devices/

Reference

createAccelerometer : devicemotion event createGyroscope : deviceorientation event

Changelog

See CHANGELOG.md

1.2.6

3 months ago

1.2.5

4 months ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

3 years ago

1.0.3

2 years ago

0.0.100

3 years ago