Comparing version 4.0.140 to 4.0.141
@@ -44,3 +44,3 @@ "use strict"; | ||
(0, react_1.useEffect)(() => { | ||
var _a; | ||
var _a, _b; | ||
if (!props.src) { | ||
@@ -68,2 +68,3 @@ throw new Error('No src passed'); | ||
toneFrequency: toneFrequency !== null && toneFrequency !== void 0 ? toneFrequency : null, | ||
audioStartFrame: -((_b = sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom) !== null && _b !== void 0 ? _b : 0), | ||
}); | ||
@@ -85,2 +86,3 @@ return () => unregisterRenderAsset(id); | ||
toneFrequency, | ||
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom, | ||
]); | ||
@@ -87,0 +89,0 @@ const { src } = props; |
@@ -69,2 +69,3 @@ import type { ComponentType, LazyExoticComponent } from 'react'; | ||
toneFrequency: number | null; | ||
audioStartFrame: number; | ||
}; | ||
@@ -75,5 +76,5 @@ export declare const compositionsRef: React.RefObject<{ | ||
export declare const CompositionManagerProvider: React.FC<{ | ||
children: React.ReactNode; | ||
numberOfAudioTags: number; | ||
readonly children: React.ReactNode; | ||
readonly numberOfAudioTags: number; | ||
}>; | ||
export {}; |
@@ -51,3 +51,3 @@ /// <reference types="node" /> | ||
remotion_finishedBuilding: undefined | (() => void); | ||
siteVersion: '10'; | ||
siteVersion: '11'; | ||
remotion_version: string; | ||
@@ -54,0 +54,0 @@ remotion_imported: string | boolean; |
@@ -25,7 +25,14 @@ "use strict"; | ||
}; | ||
const onError = () => { | ||
unblock(); | ||
}; | ||
current.addEventListener('canplay', onCanPlay, { | ||
once: true, | ||
}); | ||
current.addEventListener('error', onError, { | ||
once: true, | ||
}); | ||
cleanup = () => { | ||
current.removeEventListener('canplay', onCanPlay); | ||
current.removeEventListener('error', onError); | ||
unblock(); | ||
@@ -32,0 +39,0 @@ return undefined; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "4.0.140"; | ||
export declare const VERSION = "4.0.141"; |
@@ -5,2 +5,2 @@ "use strict"; | ||
// Automatically generated on publish | ||
exports.VERSION = '4.0.140'; | ||
exports.VERSION = '4.0.141'; |
@@ -50,2 +50,3 @@ "use strict"; | ||
(0, react_1.useEffect)(() => { | ||
var _a; | ||
if (!src) { | ||
@@ -73,2 +74,3 @@ throw new Error('No src passed'); | ||
toneFrequency: toneFrequency !== null && toneFrequency !== void 0 ? toneFrequency : null, | ||
audioStartFrame: -((_a = sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom) !== null && _a !== void 0 ? _a : 0), | ||
}); | ||
@@ -88,2 +90,3 @@ return () => unregisterRenderAsset(id); | ||
toneFrequency, | ||
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom, | ||
]); | ||
@@ -90,0 +93,0 @@ const currentTime = (0, react_1.useMemo)(() => { |
@@ -51,2 +51,3 @@ "use strict"; | ||
(0, react_1.useEffect)(() => { | ||
var _a; | ||
if (!props.src) { | ||
@@ -74,2 +75,3 @@ throw new Error('No src passed'); | ||
toneFrequency: toneFrequency !== null && toneFrequency !== void 0 ? toneFrequency : null, | ||
audioStartFrame: -((_a = sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom) !== null && _a !== void 0 ? _a : 0), | ||
}); | ||
@@ -89,2 +91,3 @@ return () => unregisterRenderAsset(id); | ||
toneFrequency, | ||
sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom, | ||
]); | ||
@@ -91,0 +94,0 @@ (0, react_1.useImperativeHandle)(ref, () => { |
{ | ||
"name": "remotion", | ||
"version": "4.0.140", | ||
"version": "4.0.141", | ||
"description": "Render videos in React", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
626149
14428