@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnimedia/omnitool",
3
- "version": "1.1.0-34",
3
+ "version": "1.1.0-35",
4
4
  "description": "open source video processing tools",
5
5
  "license": "MIT",
6
6
  "author": "Przemysław Gałęzki",
@@ -42,9 +42,9 @@ export function makeWebCodecsSampler(
42
42
  audio: {
43
43
  getStream: async function*() {
44
44
  const source = resolveMedia(item.mediaHash)
45
- const startUs = item.start
46
- const endUs = (item.start + item.duration)
47
- const audio = driver.decodeAudio({source, start: startUs, end: endUs})
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
  },