@remotion/webcodecs 4.0.233 → 4.0.234
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/dist/esm/index.mjs +2 -1
- package/dist/on-video-track.js +2 -1
- package/package.json +4 -4
package/dist/esm/index.mjs
CHANGED
|
@@ -1352,7 +1352,8 @@ var makeVideoTrackHandler = ({
|
|
|
1352
1352
|
if (videoOperation.type !== "reencode") {
|
|
1353
1353
|
throw new error_cause_default(`Video track with ID ${track.trackId} could not be resolved with a valid operation. Received ${JSON.stringify(videoOperation)}, but must be either "copy", "reencode", "drop" or "fail"`);
|
|
1354
1354
|
}
|
|
1355
|
-
const rotation = videoOperation.rotate ?? -track.rotation;
|
|
1355
|
+
const rotation = (videoOperation.rotate ?? rotate) - track.rotation;
|
|
1356
|
+
console.log(rotate);
|
|
1356
1357
|
const { height: newHeight, width: newWidth } = calculateNewDimensionsFromDimensions({
|
|
1357
1358
|
width: track.codedWidth,
|
|
1358
1359
|
height: track.codedHeight,
|
package/dist/on-video-track.js
CHANGED
|
@@ -63,7 +63,8 @@ const makeVideoTrackHandler = ({ state, onVideoFrame, onMediaStateUpdate, abortC
|
|
|
63
63
|
if (videoOperation.type !== 'reencode') {
|
|
64
64
|
throw new error_cause_1.default(`Video track with ID ${track.trackId} could not be resolved with a valid operation. Received ${JSON.stringify(videoOperation)}, but must be either "copy", "reencode", "drop" or "fail"`);
|
|
65
65
|
}
|
|
66
|
-
const rotation = (_a = videoOperation.rotate) !== null && _a !== void 0 ? _a : -track.rotation;
|
|
66
|
+
const rotation = ((_a = videoOperation.rotate) !== null && _a !== void 0 ? _a : rotate) - track.rotation;
|
|
67
|
+
console.log(rotate);
|
|
67
68
|
const { height: newHeight, width: newWidth } = (0, rotation_1.calculateNewDimensionsFromDimensions)({
|
|
68
69
|
width: track.codedWidth,
|
|
69
70
|
height: track.codedHeight,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/webcodecs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.234",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -17,14 +17,14 @@
|
|
|
17
17
|
"author": "Jonny Burger <jonny@remotion.dev>",
|
|
18
18
|
"license": "Remotion License (See https://remotion.dev/docs/webcodecs#license)",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@remotion/media-parser": "4.0.
|
|
21
|
-
"@remotion/example-videos": "4.0.233"
|
|
20
|
+
"@remotion/media-parser": "4.0.234"
|
|
22
21
|
},
|
|
23
22
|
"peerDependencies": {},
|
|
24
23
|
"devDependencies": {
|
|
25
24
|
"@types/dom-webcodecs": "0.1.11",
|
|
26
25
|
"eslint": "9.14.0",
|
|
27
|
-
"@remotion/
|
|
26
|
+
"@remotion/example-videos": "4.0.234",
|
|
27
|
+
"@remotion/eslint-config-internal": "4.0.234"
|
|
28
28
|
},
|
|
29
29
|
"keywords": [],
|
|
30
30
|
"publishConfig": {
|