remotion 4.0.40 → 4.0.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/dist/cjs/internals.d.ts +1 -0
- package/dist/cjs/internals.js +2 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/get-environment.d.ts +0 -3
- package/dist/cjs/get-environment.js +0 -34
package/dist/cjs/internals.d.ts
CHANGED
|
@@ -144,5 +144,6 @@ export declare const Internals: {
|
|
|
144
144
|
readonly ClipComposition: import("react").FC<{
|
|
145
145
|
children?: import("react").ReactNode;
|
|
146
146
|
}>;
|
|
147
|
+
readonly isIosSafari: () => boolean;
|
|
147
148
|
};
|
|
148
149
|
export type { TComposition, Timeline, TCompMetadata, TSequence, TRenderAsset as TAsset, TimelineContextValue, SetTimelineContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, RemotionEnvironment, SerializedJSONWithCustomFields, };
|
package/dist/cjs/internals.js
CHANGED
|
@@ -63,6 +63,7 @@ const validate_dimensions_js_1 = require("./validation/validate-dimensions.js");
|
|
|
63
63
|
const validate_duration_in_frames_js_1 = require("./validation/validate-duration-in-frames.js");
|
|
64
64
|
const validate_fps_js_1 = require("./validation/validate-fps.js");
|
|
65
65
|
const duration_state_js_1 = require("./video/duration-state.js");
|
|
66
|
+
const video_fragment_js_1 = require("./video/video-fragment.js");
|
|
66
67
|
const volume_position_state_js_1 = require("./volume-position-state.js");
|
|
67
68
|
const wrap_remotion_context_js_1 = require("./wrap-remotion-context.js");
|
|
68
69
|
const Timeline = TimelinePosition;
|
|
@@ -129,4 +130,5 @@ exports.Internals = {
|
|
|
129
130
|
DATE_TOKEN: input_props_serialization_js_1.DATE_TOKEN,
|
|
130
131
|
NativeLayersProvider: NativeLayers_js_1.NativeLayersProvider,
|
|
131
132
|
ClipComposition: Composition_js_1.ClipComposition,
|
|
133
|
+
isIosSafari: video_fragment_js_1.isIosSafari,
|
|
132
134
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.42";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -59,7 +59,7 @@ function truthy(value) {
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Automatically generated on publish
|
|
62
|
-
const VERSION = '4.0.
|
|
62
|
+
const VERSION = '4.0.42';
|
|
63
63
|
|
|
64
64
|
const checkMultipleRemotionVersions = () => {
|
|
65
65
|
if (typeof globalThis === 'undefined') {
|
|
@@ -3976,6 +3976,7 @@ const Internals = {
|
|
|
3976
3976
|
DATE_TOKEN,
|
|
3977
3977
|
NativeLayersProvider,
|
|
3978
3978
|
ClipComposition,
|
|
3979
|
+
isIosSafari,
|
|
3979
3980
|
};
|
|
3980
3981
|
|
|
3981
3982
|
const flattenChildren = (children) => {
|
|
@@ -4642,7 +4643,6 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAm
|
|
|
4642
4643
|
current.removeEventListener('loadeddata', loadedDataHandler);
|
|
4643
4644
|
};
|
|
4644
4645
|
}
|
|
4645
|
-
console.log({ currentTime, frame, mediaStartsAt });
|
|
4646
4646
|
current.currentTime = currentTime;
|
|
4647
4647
|
const seekedHandler = () => {
|
|
4648
4648
|
warnAboutNonSeekableMedia(current, 'exception');
|
|
@@ -4692,6 +4692,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAm
|
|
|
4692
4692
|
videoConfig.fps,
|
|
4693
4693
|
frame,
|
|
4694
4694
|
mediaStartsAt,
|
|
4695
|
+
onError,
|
|
4695
4696
|
]);
|
|
4696
4697
|
const { src } = props;
|
|
4697
4698
|
// If video source switches, make new handle
|
|
@@ -4723,7 +4724,6 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, allowAm
|
|
|
4723
4724
|
};
|
|
4724
4725
|
}, [src, onDuration]);
|
|
4725
4726
|
}
|
|
4726
|
-
console.log(JSON.stringify({ props }));
|
|
4727
4727
|
return jsx("video", { ref: videoRef, ...props, onError: onError });
|
|
4728
4728
|
};
|
|
4729
4729
|
const VideoForRendering = forwardRef(VideoForRenderingForwardFunction);
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useRemotionEnvironment = exports.getRemotionEnvironment = void 0;
|
|
4
|
-
const is_player_js_1 = require("./is-player.js");
|
|
5
|
-
const getRemotionEnvironment = () => {
|
|
6
|
-
if (process.env.NODE_ENV === 'production') {
|
|
7
|
-
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
8
|
-
return 'player-production';
|
|
9
|
-
}
|
|
10
|
-
return 'rendering';
|
|
11
|
-
}
|
|
12
|
-
// The Vitest framework sets NODE_ENV as test.
|
|
13
|
-
// Right now we don't need to treat it in a special
|
|
14
|
-
// way which is good - defaulting to `rendering`.
|
|
15
|
-
if (process.env.NODE_ENV === 'test') {
|
|
16
|
-
return 'rendering';
|
|
17
|
-
}
|
|
18
|
-
if (typeof window !== 'undefined' && window.remotion_isPlayer) {
|
|
19
|
-
return 'player-development';
|
|
20
|
-
}
|
|
21
|
-
return 'preview';
|
|
22
|
-
};
|
|
23
|
-
exports.getRemotionEnvironment = getRemotionEnvironment;
|
|
24
|
-
const useRemotionEnvironment = () => {
|
|
25
|
-
const isPlayer = (0, is_player_js_1.useIsPlayer)();
|
|
26
|
-
if (isPlayer) {
|
|
27
|
-
if (process.env.NODE_ENV === 'production') {
|
|
28
|
-
return 'player-production';
|
|
29
|
-
}
|
|
30
|
-
return 'player-development';
|
|
31
|
-
}
|
|
32
|
-
return (0, exports.getRemotionEnvironment)();
|
|
33
|
-
};
|
|
34
|
-
exports.useRemotionEnvironment = useRemotionEnvironment;
|