@pacem/pacem-media 1.0.0-amaldi → 1.0.0-archimedes
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 +46 -0
- package/dist/browser/pacem-media.js +1 -1
- package/dist/browser/pacem-media.min.js +1 -1
- package/dist/bundle/pacem-media.min.mjs +1 -1
- package/dist/bundle/pacem-media.mjs +1 -1
- package/dist/esm/audio.js +1 -1
- package/dist/esm/index-components-media.js +1 -1
- package/dist/esm/index-components.js +1 -1
- package/dist/esm/index-iife.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/media-recorder.js +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[](https://www.npmjs.com/package/@pacem/pacem-media)
|
|
2
|
+
[](https://github.com/pacem-it/pacem/blob/main/LICENSE)
|
|
3
|
+
|
|
4
|
+
# @pacem/pacem-media
|
|
5
|
+
|
|
6
|
+
Media components for the [Pacem JS](https://js.pacem.it) ecosystem: `pacem-audio` for playback and `pacem-media-recorder` for capturing audio/video from the browser's media devices — 2 custom elements in total.
|
|
7
|
+
|
|
8
|
+
Depends on [`@pacem/pacem-foundation`](https://www.npmjs.com/package/@pacem/pacem-foundation) and [`@pacem/pacem-core`](https://www.npmjs.com/package/@pacem/pacem-core).
|
|
9
|
+
|
|
10
|
+
Part of the [Pacem JS](https://js.pacem.it) ecosystem. Install [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem) instead if you want every package bundled together.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install @pacem/pacem-media
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Usage
|
|
19
|
+
|
|
20
|
+
### As an ES module
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
import { Components } from '@pacem/pacem-media';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### In the browser, without a bundler
|
|
27
|
+
|
|
28
|
+
```html
|
|
29
|
+
<script src="node_modules/@pacem/pacem-foundation/dist/browser/pacem-foundation.min.js"></script>
|
|
30
|
+
<script src="node_modules/@pacem/pacem-core/dist/browser/pacem-core.min.js"></script>
|
|
31
|
+
<script src="node_modules/@pacem/pacem-media/dist/browser/pacem-media.min.js"></script>
|
|
32
|
+
|
|
33
|
+
<pacem-audio src="song.mp3"></pacem-audio>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### TypeScript
|
|
37
|
+
|
|
38
|
+
Typings ship in `typings/index.d.ts` and are resolved automatically via the package's `exports` field — both for the ES module import style and for the ambient `Pacem` global used by the plain `<script>` include above.
|
|
39
|
+
|
|
40
|
+
## Custom elements
|
|
41
|
+
|
|
42
|
+
`pacem-audio`, `pacem-media-recorder` — see [`@pacem/pacem`](https://www.npmjs.com/package/@pacem/pacem)'s `dist/vscode.html-custom.json` for attributes and editor IntelliSense support.
|
|
43
|
+
|
|
44
|
+
## License
|
|
45
|
+
|
|
46
|
+
[Apache-2.0](https://github.com/pacem-it/pacem/blob/main/LICENSE) © [Pacem](https://pacem.it)
|
package/dist/esm/audio.js
CHANGED
package/dist/esm/index-iife.js
CHANGED
package/dist/esm/index.js
CHANGED