remotion 4.0.162 → 4.0.164

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.
@@ -58,7 +58,10 @@ const useMediaBuffering = ({ element, shouldBuffer, isPremounting, }) => {
58
58
  // reset if a video is already playing.
59
59
  // Therefore only calling it after checking if the video
60
60
  // has no future data.
61
- current.load();
61
+ // Breaks on Firefox though: https://github.com/remotion-dev/remotion/issues/3915
62
+ if (!navigator.userAgent.includes('Firefox/')) {
63
+ current.load();
64
+ }
62
65
  }
63
66
  else {
64
67
  current.addEventListener('waiting', onWaiting);
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.162";
6
+ export declare const VERSION = "4.0.164";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.162';
10
+ exports.VERSION = '4.0.164';
@@ -138,7 +138,7 @@ function truthy(value) {
138
138
  }
139
139
 
140
140
  // src/version.ts
141
- var VERSION = "4.0.162";
141
+ var VERSION = "4.0.164";
142
142
 
143
143
  // src/multiple-versions-warning.ts
144
144
  var checkMultipleRemotionVersions = () => {
@@ -2042,7 +2042,9 @@ var useMediaBuffering = ({
2042
2042
  const init = () => {
2043
2043
  if (current.readyState < current.HAVE_FUTURE_DATA) {
2044
2044
  onWaiting();
2045
- current.load();
2045
+ if (!navigator.userAgent.includes("Firefox/")) {
2046
+ current.load();
2047
+ }
2046
2048
  } else {
2047
2049
  current.addEventListener("waiting", onWaiting);
2048
2050
  cleanupFns.push(() => {
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.162";
2
+ var VERSION = "4.0.164";
3
3
  export {
4
4
  VERSION
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.162",
3
+ "version": "4.0.164",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",