@htmlbricks/hb-player-input-streaming 0.66.7 → 0.66.9
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 +33 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
## `hb-player-input-streaming` — player input streaming
|
|
2
|
+
|
|
3
|
+
**Category:** media
|
|
4
|
+
**Tags:** media, video, camera
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Requests camera and microphone with `getUserMedia`, binds the stream to a `<video>` element, and exposes basic controls (play/pause, fullscreen, enable/disable video and audio tracks). Emits `AudioVideoAccess` with grant result and `VideoInitialized` with the video element reference once the stream is attached.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-player-input-streaming`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` (optional): string — echoed on dispatched events.
|
|
17
|
+
|
|
18
|
+
### Events
|
|
19
|
+
|
|
20
|
+
- `AudioVideoAccess`: `{ granted: boolean; id: string }`.
|
|
21
|
+
- `VideoInitialized`: `{ videoElement; id: string }`.
|
|
22
|
+
- `event`: `{ test: boolean }` (test hook in source).
|
|
23
|
+
|
|
24
|
+
### Usage notes
|
|
25
|
+
|
|
26
|
+
- Requires secure context and user permission for camera/microphone.
|
|
27
|
+
- Types in `webcomponent.type.d.ts` only list `event`; runtime also dispatches `AudioVideoAccess` and `VideoInitialized` (see `component.wc.svelte`).
|
|
28
|
+
|
|
29
|
+
### Minimal HTML example
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<hb-player-input-streaming id="cam1"></hb-player-input-streaming>
|
|
33
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-player-input-streaming",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Requests camera and microphone with `getUserMedia`, binds the stream to a `<video>` element, and exposes basic controls (play/pause, fullscreen, enable/disable video and audio tracks). Emits `AudioVideoAccess` with grant result and `VideoInitialized` with the video element reference once the stream is attached.",
|
|
6
6
|
"licenses": [
|