remotion 4.0.6 → 4.0.8
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.
|
@@ -96,6 +96,6 @@ const AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
96
96
|
if (initialShouldPreMountAudioElements) {
|
|
97
97
|
return null;
|
|
98
98
|
}
|
|
99
|
-
return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, ...propsToPass });
|
|
99
|
+
return (0, jsx_runtime_1.jsx)("audio", { ref: audioRef, preload: "metadata", ...propsToPass });
|
|
100
100
|
};
|
|
101
101
|
exports.AudioForDevelopment = (0, react_1.forwardRef)(AudioForDevelopmentForwardRefFunction);
|
|
@@ -193,7 +193,11 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags, component })
|
|
|
193
193
|
};
|
|
194
194
|
}, [component, resetAudio]);
|
|
195
195
|
return ((0, jsx_runtime_1.jsxs)(exports.SharedAudioContext.Provider, { value: value, children: [refs.map(({ id, ref }) => {
|
|
196
|
-
return (
|
|
196
|
+
return (
|
|
197
|
+
// Without preload="metadata", iOS will seek the time internally
|
|
198
|
+
// but not actually with sound. Adding `preload="metadata"` helps here.
|
|
199
|
+
// https://discord.com/channels/809501355504959528/817306414069710848/1130519583367888906
|
|
200
|
+
(0, jsx_runtime_1.jsx)("audio", { ref: ref, preload: "metadata", src: EMPTY_AUDIO }, id));
|
|
197
201
|
}), children] }));
|
|
198
202
|
};
|
|
199
203
|
exports.SharedAudioContextProvider = SharedAudioContextProvider;
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "4.0.
|
|
1
|
+
export declare const VERSION = "4.0.8";
|
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.8';
|
|
63
63
|
|
|
64
64
|
const checkMultipleRemotionVersions = () => {
|
|
65
65
|
if (typeof globalThis === 'undefined') {
|
|
@@ -2065,7 +2065,11 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags, component })
|
|
|
2065
2065
|
};
|
|
2066
2066
|
}, [component, resetAudio]);
|
|
2067
2067
|
return (jsxs(SharedAudioContext.Provider, { value: value, children: [refs.map(({ id, ref }) => {
|
|
2068
|
-
return
|
|
2068
|
+
return (
|
|
2069
|
+
// Without preload="metadata", iOS will seek the time internally
|
|
2070
|
+
// but not actually with sound. Adding `preload="metadata"` helps here.
|
|
2071
|
+
// https://discord.com/channels/809501355504959528/817306414069710848/1130519583367888906
|
|
2072
|
+
jsx("audio", { ref: ref, preload: "metadata", src: EMPTY_AUDIO }, id));
|
|
2069
2073
|
}), children] }));
|
|
2070
2074
|
};
|
|
2071
2075
|
const useSharedAudio = (aud, audioId) => {
|
|
@@ -2193,7 +2197,7 @@ const AudioForDevelopmentForwardRefFunction = (props, ref) => {
|
|
|
2193
2197
|
if (initialShouldPreMountAudioElements) {
|
|
2194
2198
|
return null;
|
|
2195
2199
|
}
|
|
2196
|
-
return jsx("audio", { ref: audioRef, ...propsToPass });
|
|
2200
|
+
return jsx("audio", { ref: audioRef, preload: "metadata", ...propsToPass });
|
|
2197
2201
|
};
|
|
2198
2202
|
const AudioForDevelopment = forwardRef(AudioForDevelopmentForwardRefFunction);
|
|
2199
2203
|
|
package/dist/esm/version.mjs
CHANGED