@flow-player/software-decoder-ffmpeg 0.7.2 → 0.7.4

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.
Binary file
@@ -255,7 +255,8 @@ async function instantiateFfmpegWasm(url, imports) {
255
255
  async function loadFfmpegSimdModule(options) {
256
256
  const { glueText: glueText2 } = await loadFfmpegAssets();
257
257
  const wasmUrl = resolveSoftwareDecoderWasmUrl(options);
258
- const loader = new Function(
258
+ const DynamicFunction = globalThis.Function;
259
+ const loader = new DynamicFunction(
259
260
  "Module",
260
261
  "module",
261
262
  "exports",
@@ -2,6 +2,7 @@
2
2
  var WORKER_MESSAGE = Object.freeze({
3
3
  Init: "init",
4
4
  Play: "play",
5
+ CancelMp4Playback: "cancel-mp4-playback",
5
6
  Pause: "pause",
6
7
  PushChunk: "push-chunk",
7
8
  PushRtspMessage: "push-rtsp-message",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flow-player/software-decoder-ffmpeg",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "FFmpeg (ffdecoder) WASM software decode backend for @flow-player/browser-runtime: prebuilt adapter + decode worker, drop-in HEVC software decoding.",
5
5
  "keywords": [
6
6
  "esm",
@@ -34,6 +34,6 @@
34
34
  "tag": "latest"
35
35
  },
36
36
  "dependencies": {
37
- "@flow-player/browser-runtime": "^0.7.2"
37
+ "@flow-player/browser-runtime": "^0.7.4"
38
38
  }
39
39
  }