@waveform-playlist/media-element-playout 12.3.0 → 12.3.1
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ A lightweight, HTMLMediaElement-based playout engine for waveform-playlist with
|
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
- **Pitch-preserving playback rate** (0.
|
|
7
|
+
- **Pitch-preserving playback rate** (0.25x - 4.0x) - uses browser's built-in time-stretching
|
|
8
8
|
- **Pre-computed peaks** - no AudioBuffer decoding required, instant visualization
|
|
9
9
|
- **Lightweight** - no Tone.js dependency
|
|
10
10
|
- **Simple API** - designed for single-track playback use cases
|
|
@@ -69,7 +69,7 @@ playout.dispose();
|
|
|
69
69
|
```typescript
|
|
70
70
|
interface MediaElementPlayoutOptions {
|
|
71
71
|
masterVolume?: number; // 0.0 to 1.0 (default: 1.0)
|
|
72
|
-
playbackRate?: number; // 0.
|
|
72
|
+
playbackRate?: number; // 0.25 to 4.0 (default: 1.0)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
class MediaElementPlayout {
|
|
@@ -97,7 +97,7 @@ class MediaElementPlayout {
|
|
|
97
97
|
|
|
98
98
|
// Volume & Rate
|
|
99
99
|
setMasterVolume(volume: number): void;
|
|
100
|
-
setPlaybackRate(rate: number): void; // 0.
|
|
100
|
+
setPlaybackRate(rate: number): void; // 0.25 to 4.0, pitch preserved
|
|
101
101
|
|
|
102
102
|
// State
|
|
103
103
|
readonly isPlaying: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@waveform-playlist/media-element-playout",
|
|
3
|
-
"version": "12.3.
|
|
3
|
+
"version": "12.3.1",
|
|
4
4
|
"description": "HTMLMediaElement-based playout engine for waveform-playlist with pitch-preserving playback rate",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"vitest": "^3.2.6"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@waveform-playlist/core": "12.
|
|
45
|
+
"@waveform-playlist/core": "12.6.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "tsup",
|