remotion 4.0.179 → 4.0.180
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/validation/validate-composition-id.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/video/Video.d.ts +1 -1
- package/dist/cjs/video/VideoForPreview.js +1 -1
- package/dist/cjs/video/VideoForRendering.d.ts +1 -1
- package/dist/cjs/video/props.d.ts +1 -1
- package/dist/esm/index.mjs +3 -2
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const isCompositionIdValid = (id) => id.match(getRegex());
|
|
|
6
6
|
exports.isCompositionIdValid = isCompositionIdValid;
|
|
7
7
|
const validateCompositionId = (id) => {
|
|
8
8
|
if (!(0, exports.isCompositionIdValid)(id)) {
|
|
9
|
-
throw new Error(`Composition id can only contain a-z, A-Z, 0-9 and -. You passed ${id}`);
|
|
9
|
+
throw new Error(`Composition id can only contain a-z, A-Z, 0-9, CJK characters and -. You passed ${id}`);
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
exports.validateCompositionId = validateCompositionId;
|
package/dist/cjs/version.d.ts
CHANGED
package/dist/cjs/version.js
CHANGED
|
@@ -4,7 +4,7 @@ import type { RemotionMainVideoProps } from './props';
|
|
|
4
4
|
* @description allows you to include a video file in your Remotion project. It wraps the native HTMLVideoElement.
|
|
5
5
|
* @see [Documentation](https://www.remotion.dev/docs/video)
|
|
6
6
|
*/
|
|
7
|
-
export declare const Video: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls"> & {
|
|
7
|
+
export declare const Video: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls" | "disableRemotePlayback"> & {
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
volume?: import("../volume-prop.js").VolumeProp | undefined;
|
|
10
10
|
playbackRate?: number | undefined;
|
|
@@ -154,6 +154,6 @@ const VideoForDevelopmentRefForwardingFunction = (props, ref) => {
|
|
|
154
154
|
opacity: isSequenceHidden ? 0 : (_a = style === null || style === void 0 ? void 0 : style.opacity) !== null && _a !== void 0 ? _a : 1,
|
|
155
155
|
};
|
|
156
156
|
}, [isSequenceHidden, style]);
|
|
157
|
-
return ((0, jsx_runtime_1.jsx)("video", { ref: videoRef, muted: muted || mediaMuted, playsInline: true, src: actualSrc, loop: _remotionInternalNativeLoopPassed, style: actualStyle, ...nativeProps }));
|
|
157
|
+
return ((0, jsx_runtime_1.jsx)("video", { ref: videoRef, muted: muted || mediaMuted, playsInline: true, src: actualSrc, loop: _remotionInternalNativeLoopPassed, style: actualStyle, disableRemotePlayback: true, ...nativeProps }));
|
|
158
158
|
};
|
|
159
159
|
exports.VideoForPreview = (0, react_1.forwardRef)(VideoForDevelopmentRefForwardingFunction);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const VideoForRendering: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls"> & {
|
|
3
|
+
export declare const VideoForRendering: ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls" | "disableRemotePlayback"> & {
|
|
4
4
|
name?: string | undefined;
|
|
5
5
|
volume?: import("../volume-prop.js").VolumeProp | undefined;
|
|
6
6
|
playbackRate?: number | undefined;
|
|
@@ -10,7 +10,7 @@ export type RemotionMainVideoProps = {
|
|
|
10
10
|
_remotionInternalNativeLoopPassed?: boolean;
|
|
11
11
|
_remotionDebugSeeking?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export type RemotionVideoProps = Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, 'autoPlay' | 'controls' | 'onEnded' | 'nonce' | 'onError'> & {
|
|
13
|
+
export type RemotionVideoProps = Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, 'autoPlay' | 'controls' | 'onEnded' | 'nonce' | 'onError' | 'disableRemotePlayback'> & {
|
|
14
14
|
name?: string;
|
|
15
15
|
volume?: VolumeProp;
|
|
16
16
|
playbackRate?: number;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -138,7 +138,7 @@ function truthy(value) {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
// src/version.ts
|
|
141
|
-
var VERSION = "4.0.
|
|
141
|
+
var VERSION = "4.0.180";
|
|
142
142
|
|
|
143
143
|
// src/multiple-versions-warning.ts
|
|
144
144
|
var checkMultipleRemotionVersions = () => {
|
|
@@ -3914,7 +3914,7 @@ var getRegex2 = () => /^([a-zA-Z0-9-\u4E00-\u9FFF])+$/g;
|
|
|
3914
3914
|
var isCompositionIdValid = (id) => id.match(getRegex2());
|
|
3915
3915
|
var validateCompositionId = (id) => {
|
|
3916
3916
|
if (!isCompositionIdValid(id)) {
|
|
3917
|
-
throw new Error(`Composition id can only contain a-z, A-Z, 0-9 and -. You passed ${id}`);
|
|
3917
|
+
throw new Error(`Composition id can only contain a-z, A-Z, 0-9, CJK characters and -. You passed ${id}`);
|
|
3918
3918
|
}
|
|
3919
3919
|
};
|
|
3920
3920
|
var invalidCompositionErrorMessage = `Composition ID must match ${String(getRegex2())}`;
|
|
@@ -6035,6 +6035,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
|
|
|
6035
6035
|
src: actualSrc,
|
|
6036
6036
|
loop: _remotionInternalNativeLoopPassed,
|
|
6037
6037
|
style: actualStyle,
|
|
6038
|
+
disableRemotePlayback: true,
|
|
6038
6039
|
...nativeProps
|
|
6039
6040
|
});
|
|
6040
6041
|
};
|
package/dist/esm/version.mjs
CHANGED
package/package.json
CHANGED