@reuters-graphics/graphics-components 3.0.13 → 3.0.14
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createFile } from 'mp4box';
|
|
2
2
|
/**
|
|
3
3
|
* Taken from https://github.com/w3c/webcodecs/blob/main/samples/mp4-decode/mp4_demuxer.js
|
|
4
4
|
*/
|
|
@@ -81,7 +81,7 @@ const decodeVideo = (src, emitFrame, { VideoDecoder, EncodedVideoChunk, debug, }
|
|
|
81
81
|
console.info('Decoding video from', src);
|
|
82
82
|
try {
|
|
83
83
|
// Uses mp4box for demuxing
|
|
84
|
-
const mp4boxfile =
|
|
84
|
+
const mp4boxfile = createFile();
|
|
85
85
|
// Holds the codec value
|
|
86
86
|
let codec = 'N/A';
|
|
87
87
|
// Creates a VideoDecoder instance
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reuters-graphics/graphics-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"homepage": "https://reuters-graphics.github.io/graphics-components",
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"eslint-plugin-storybook": "^0.12.0",
|
|
64
64
|
"knip": "^5.50.5",
|
|
65
65
|
"mermaid": "^10.9.3",
|
|
66
|
-
"mp4box": "^0.5.4",
|
|
67
66
|
"postcss": "^8.5.3",
|
|
68
67
|
"prettier": "^3.5.3",
|
|
69
68
|
"prettier-plugin-svelte": "^3.3.3",
|
|
@@ -80,7 +79,6 @@
|
|
|
80
79
|
"svelte": "^5.28.1",
|
|
81
80
|
"svelte-check": "^4.1.6",
|
|
82
81
|
"typescript": "^5.8.3",
|
|
83
|
-
"ua-parser-js": "^2.0.3",
|
|
84
82
|
"vite": "^6.3.2"
|
|
85
83
|
},
|
|
86
84
|
"dependencies": {
|
|
@@ -96,7 +94,9 @@
|
|
|
96
94
|
"slugify": "^1.6.6",
|
|
97
95
|
"storybook-addon-rtl": "^1.1.0",
|
|
98
96
|
"svelte-fa": "^4.0.3",
|
|
99
|
-
"svelte-intersection-observer": "^1.0.0"
|
|
97
|
+
"svelte-intersection-observer": "^1.0.0",
|
|
98
|
+
"mp4box": "^0.5.4",
|
|
99
|
+
"ua-parser-js": "^2.0.3"
|
|
100
100
|
},
|
|
101
101
|
"exports": {
|
|
102
102
|
".": {
|