remotion 4.0.0-offthread.34 → 4.0.0-offthread.42
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[33mremotion:build: [0mcache hit, replaying output [
|
|
1
|
+
[33mremotion:build: [0mcache hit, replaying output [2m98f6b349806c7285[0m
|
|
2
2
|
[33mremotion:build: [0m
|
|
3
3
|
[33mremotion:build: [0m> remotion@3.0.10 build /Users/jonathanburger/remotion/packages/core
|
|
4
4
|
[33mremotion:build: [0m> tsc -d
|
|
@@ -21,7 +21,6 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
|
|
|
21
21
|
const sequenceContext = (0, react_1.useContext)(sequencing_1.SequenceContext);
|
|
22
22
|
const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
|
|
23
23
|
const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
24
|
-
const [crash, setCrash] = (0, react_1.useState)(false);
|
|
25
24
|
if (!src) {
|
|
26
25
|
throw new TypeError('No `src` was passed to <OffthreadVideo>.');
|
|
27
26
|
}
|
|
@@ -81,26 +80,8 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
|
|
|
81
80
|
return `http://localhost:${window.remotion_proxyPort}/proxy?src=${encodeURIComponent((0, absolute_src_1.getAbsoluteSrc)(src))}&time=${encodeURIComponent(currentTime)}`;
|
|
82
81
|
}, [currentTime, src]);
|
|
83
82
|
const onErr = (0, react_1.useCallback)((e) => {
|
|
84
|
-
console.log('ERROR', actualSrc);
|
|
85
|
-
fetch(actualSrc)
|
|
86
|
-
.then((res) => {
|
|
87
|
-
console.log('fetch', res.status);
|
|
88
|
-
return res.text();
|
|
89
|
-
})
|
|
90
|
-
.then((text) => {
|
|
91
|
-
console.log('TEXT', text);
|
|
92
|
-
})
|
|
93
|
-
.catch((err) => {
|
|
94
|
-
console.log('MSG', err.message);
|
|
95
|
-
})
|
|
96
|
-
.finally(() => {
|
|
97
|
-
setCrash(true);
|
|
98
|
-
});
|
|
99
83
|
onError === null || onError === void 0 ? void 0 : onError(e);
|
|
100
|
-
}, [
|
|
101
|
-
if (crash) {
|
|
102
|
-
throw new Error('crash');
|
|
103
|
-
}
|
|
84
|
+
}, [onError]);
|
|
104
85
|
return (0, jsx_runtime_1.jsx)(Img_1.Img, { src: actualSrc, ...props, onError: onErr }, void 0);
|
|
105
86
|
};
|
|
106
87
|
exports.OffthreadVideoForRendering = OffthreadVideoForRendering;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "4.0.0-offthread.
|
|
3
|
+
"version": "4.0.0-offthread.42+5cdecb6d7",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "5cdecb6d7971afe3062521d319eb32aac96346f3"
|
|
59
59
|
}
|