@omnimedia/omnitool 1.1.0-34 → 1.1.0-35
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/package.json +1 -1
- package/s/timeline/parts/compositor/samplers/webcodecs.ts +3 -3
- package/x/demo/demo.bundle.min.js +17 -17
- package/x/demo/demo.bundle.min.js.map +3 -3
- package/x/index.html +2 -2
- package/x/timeline/parts/compositor/samplers/webcodecs.js +3 -3
- package/x/timeline/parts/compositor/samplers/webcodecs.js.map +1 -1
package/package.json
CHANGED
|
@@ -42,9 +42,9 @@ export function makeWebCodecsSampler(
|
|
|
42
42
|
audio: {
|
|
43
43
|
getStream: async function*() {
|
|
44
44
|
const source = resolveMedia(item.mediaHash)
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const audio = driver.decodeAudio({source, start
|
|
45
|
+
const start = item.start / 1000
|
|
46
|
+
const end = (item.start + item.duration) / 1000
|
|
47
|
+
const audio = driver.decodeAudio({source, start, end})
|
|
48
48
|
const audioStream = new AudioStream(audio.getReader())
|
|
49
49
|
yield* audioStream.stream()
|
|
50
50
|
},
|