ez-vid-ang 22.2.0 → 22.3.0
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 +67 -10
- package/fesm2022/ez-vid-ang.mjs +590 -692
- package/fesm2022/ez-vid-ang.mjs.map +1 -1
- package/package.json +31 -12
- package/types/ez-vid-ang-icons.d.ts +3 -0
- package/types/ez-vid-ang.d.ts +162 -73
package/README.md
CHANGED
|
@@ -8,17 +8,21 @@ Highly configurable, performant and easy-to-use Angular component library for vi
|
|
|
8
8
|
⚡ **Zoneless** - Built for zoneless Angular applications by default<br/>
|
|
9
9
|
🧩 **Standalone architecture** – No NgModules required; simpler imports, better tree-shaking, and improved DX<br/>
|
|
10
10
|
🚀 **High performance** – Powered by RxJS; change detection runs only when needed (no zone pollution)<br/>
|
|
11
|
-
🎨 **Highly customizable** –
|
|
11
|
+
🎨 **Highly customizable** – 250+ CSS variables, custom icons, and fonts. Bring your own assets<br/>
|
|
12
12
|
♿ **ARIA compliant** – All components follow ARIA standards and support custom inputs<br/>
|
|
13
13
|
🌍 **Multilanguage support** – Configurable text inputs for full localization<br/>
|
|
14
14
|
▶️ **Inspired by modern players** – Familiar UX similar to popular platforms<br/>
|
|
15
15
|
📱 **Responsive design** - Works across all screen sizes and devices<br/>
|
|
16
16
|
⚙️ **Settings panel** – YouTube-style navigable settings menu with sub-menus<br/>
|
|
17
|
-
⌨️ **Keyboard shortcuts
|
|
17
|
+
⌨️ **Keyboard shortcuts** – Bind a key to any player action, plus a `?` cheat-sheet overlay that lists only the keys you've bound<br/>
|
|
18
18
|
💾 **Configuration storage** – Persist user preferences (volume, speed, loop, cinema mode) to localStorage<br/>
|
|
19
|
+
🌊 **Adaptive streaming** – HLS and DASH with automatic quality, audio track and subtitle selectors<br/>
|
|
20
|
+
📑 **Chapters** – Chapter markers on the scrub bar, active chapter display and a chapter list panel<br/>
|
|
21
|
+
👆 **Double-tap to seek** – Mobile-style double-tap gesture zones with a ripple effect<br/>
|
|
22
|
+
💬 **Tooltips** – Hover tooltips on controls, with an automatic keyboard shortcut badge<br/>
|
|
19
23
|
🎬 **Cinema mode** – Dim the page and focus on the video<br/>
|
|
20
24
|
🖼️ **Thumbnail preview** – Hover the scrub bar to see video frame thumbnails via VTT sprite sheets<br/>
|
|
21
|
-
📺 **Remote playback** – Cast to
|
|
25
|
+
📺 **Remote playback** – Cast to Chromecast or AirPlay with one click, auto-hides when no devices available<br/>
|
|
22
26
|
|
|
23
27
|
## Example project
|
|
24
28
|
|
|
@@ -26,14 +30,17 @@ Example project can be found on [Stackblitz](https://stackblitz.com/edit/stackbl
|
|
|
26
30
|
|
|
27
31
|
## Version compatibility
|
|
28
32
|
|
|
29
|
-
EzVidAng updates and develops the library for the 2 latest versions.
|
|
33
|
+
EzVidAng updates and develops the library for the 2 latest Angular major versions.
|
|
30
34
|
|
|
31
|
-
| EzVidAng | Angular | Node.js |
|
|
32
|
-
| -------- |
|
|
33
|
-
| ^21.2.x |
|
|
34
|
-
| ^22.
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
| EzVidAng | Angular | Install | Node.js |
|
|
36
|
+
| -------- | ---------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
37
|
+
| ^21.2.x | 21.2.x | `npm i ez-vid-ang@angular21` | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
|
|
38
|
+
| ^22.3.x | 22.3.x, 22.4.x, 22.5.x | `npm i ez-vid-ang` | [According to Angular docs](https://angular.dev/reference/versions#actively-supported-versions) |
|
|
39
|
+
|
|
40
|
+
Starting with v22, Angular ships a major version every 12 months with 4–6 minor versions in between ([release schedule](https://angular.dev/reference/releases#release-schedule)). EzVidAng 22.3.x supports Angular 22.3, 22.4 and 22.5 with a single release line.
|
|
41
|
+
|
|
42
|
+
> [!NOTE]
|
|
43
|
+
> EzVidAng 22.0.x, 22.1.x and 22.2.x (for Angular 22.0–22.2) stay on npm but no longer receive updates. To get new features and fixes, update your app to Angular 22.3 or newer and install the latest EzVidAng.
|
|
37
44
|
|
|
38
45
|
## Installing and preparation
|
|
39
46
|
|
|
@@ -63,6 +70,12 @@ Add the required styles to your angular.json:
|
|
|
63
70
|
}
|
|
64
71
|
```
|
|
65
72
|
|
|
73
|
+
Alternatively, `@use` it from your global stylesheet:
|
|
74
|
+
|
|
75
|
+
```scss
|
|
76
|
+
@use "ez-vid-ang/assets/eva-required-import";
|
|
77
|
+
```
|
|
78
|
+
|
|
66
79
|
Register the built-in icons once in your `main.ts` (or any bootstrapping code that runs before your components render):
|
|
67
80
|
|
|
68
81
|
```typescript
|
|
@@ -185,6 +198,42 @@ export class PlayerComponent {
|
|
|
185
198
|
|
|
186
199
|
See [Simple Example](documentation/example-simple.md) and [Full-Featured Example](documentation/example-configuration.md) for complete usage.
|
|
187
200
|
|
|
201
|
+
### Opt-in features: keyboard shortcuts and localStorage
|
|
202
|
+
|
|
203
|
+
Keyboard shortcuts and preference persistence are not built into `EvaPlayer`. Each one is a separate directive that you add to your component's `imports`, so players that don't use them don't ship their code. You still configure them through inputs on `<eva-player>`:
|
|
204
|
+
|
|
205
|
+
| Inputs on `<eva-player>` | Add to `imports` |
|
|
206
|
+
| ------------------------------------------------------------------------------ | ---------------------------------- |
|
|
207
|
+
| `evaKeyboardShortcutsEnabled`, `evaKeyboardShortcutsConfiguration` | `EvaKeyboardShortcuts` |
|
|
208
|
+
| `evaLocalStorageEnabled`, `evaLocalStorageKey`, `evaLocalStorageConfiguration` | `EvaConfigurationStorageDirective` |
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
import { EvaConfigurationStorageDirective, EvaKeyboardShortcuts, EvaPlayer } from "ez-vid-ang";
|
|
212
|
+
|
|
213
|
+
@Component({
|
|
214
|
+
imports: [EvaPlayer, EvaKeyboardShortcuts, EvaConfigurationStorageDirective /* , ...controls */],
|
|
215
|
+
template: `
|
|
216
|
+
<eva-player
|
|
217
|
+
id="player"
|
|
218
|
+
[evaVideoSources]="sources()"
|
|
219
|
+
[evaKeyboardShortcutsEnabled]="true"
|
|
220
|
+
[evaKeyboardShortcutsConfiguration]="{ playPause: 'Space', muteKey: 'M', fullscreen: 'F' }"
|
|
221
|
+
[evaLocalStorageEnabled]="true"
|
|
222
|
+
[evaLocalStorageConfiguration]="{ volume: true, playbackSpeed: true }"
|
|
223
|
+
/>
|
|
224
|
+
`,
|
|
225
|
+
})
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
No key is bound by default. A shortcut only works once you assign it a key in `evaKeyboardShortcutsConfiguration`. See [keyboard shortcuts](documentation/core/player.md#evakeyboardshortcutsconfiguration) and [configuration storage](documentation/core/configuration-storage.md).
|
|
229
|
+
|
|
230
|
+
> [!NOTE]
|
|
231
|
+
> **Upgrading to 22.3.0 / 21.2.12 or newer?** If you bind any of the inputs above, add the matching directive to your component's `imports`. Templates don't change. If the import is missing, the build fails with `Can't bind to '…' since it isn't a known property of 'eva-player'`. See the [changelog](CHANGELOG.md).
|
|
232
|
+
|
|
233
|
+
## Using an AI coding assistant?
|
|
234
|
+
|
|
235
|
+
Copy [AI_INSTRUCTIONS.md](AI_INSTRUCTIONS.md) into your assistant's context (`CLAUDE.md`, `AGENTS.md`, `.cursorrules`, `.github/copilot-instructions.md`, …). It lists the real component names, inputs and setup steps, so the assistant doesn't have to guess them.
|
|
236
|
+
|
|
188
237
|
## Components
|
|
189
238
|
|
|
190
239
|
Library has four groups of components. Click on the name to go to the documentation:
|
|
@@ -206,6 +255,14 @@ There are few functionalities I want to implement that are work in progress:
|
|
|
206
255
|
|
|
207
256
|
## Development
|
|
208
257
|
|
|
258
|
+
### Building and testing
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
npm run build # Development build of the library into dist/ez-vid-ang
|
|
262
|
+
npm run buildProd # Production build
|
|
263
|
+
npm test # Unit tests (Vitest)
|
|
264
|
+
```
|
|
265
|
+
|
|
209
266
|
### Linting
|
|
210
267
|
|
|
211
268
|
The project uses a strict ESLint configuration with type-aware TypeScript rules and Angular-specific template rules. All available rule presets are enabled.
|