remotion 4.0.68 → 4.0.69

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.
@@ -1 +1 @@
1
- export declare const VERSION = "4.0.68";
1
+ export declare const VERSION = "4.0.69";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '4.0.68';
5
+ exports.VERSION = '4.0.69';
@@ -7,11 +7,13 @@ const toSeconds = (time, fps) => {
7
7
  };
8
8
  // https://github.com/remotion-dev/remotion/issues/1655
9
9
  const isIOSSafariCase = (actualSrc) => {
10
- return typeof window === 'undefined'
11
- ? false
12
- : /iP(ad|od|hone)/i.test(window.navigator.userAgent) &&
13
- Boolean(navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) &&
14
- actualSrc.startsWith('blob:');
10
+ if (typeof window === 'undefined') {
11
+ return false;
12
+ }
13
+ const isIpadIPodIPhone = /iP(ad|od|hone)/i.test(window.navigator.userAgent);
14
+ const isSafari = Boolean(navigator.userAgent.match(/Version\/[\d.]+.*Safari/));
15
+ const isChrome = Boolean(navigator.userAgent.match(/CriOS\//));
16
+ return (isIpadIPodIPhone && (isSafari || isChrome) && actualSrc.startsWith('blob:'));
15
17
  };
16
18
  const appendVideoFragment = ({ actualSrc, actualFrom, duration, fps, }) => {
17
19
  var _a;
@@ -59,7 +59,7 @@ function truthy(value) {
59
59
  }
60
60
 
61
61
  // Automatically generated on publish
62
- const VERSION = '4.0.68';
62
+ const VERSION = '4.0.69';
63
63
 
64
64
  const checkMultipleRemotionVersions = () => {
65
65
  if (typeof globalThis === 'undefined') {
@@ -1803,11 +1803,13 @@ const toSeconds = (time, fps) => {
1803
1803
  };
1804
1804
  // https://github.com/remotion-dev/remotion/issues/1655
1805
1805
  const isIOSSafariCase = (actualSrc) => {
1806
- return typeof window === 'undefined'
1807
- ? false
1808
- : /iP(ad|od|hone)/i.test(window.navigator.userAgent) &&
1809
- Boolean(navigator.userAgent.match(/Version\/[\d.]+.*Safari/)) &&
1810
- actualSrc.startsWith('blob:');
1806
+ if (typeof window === 'undefined') {
1807
+ return false;
1808
+ }
1809
+ const isIpadIPodIPhone = /iP(ad|od|hone)/i.test(window.navigator.userAgent);
1810
+ const isSafari = Boolean(navigator.userAgent.match(/Version\/[\d.]+.*Safari/));
1811
+ const isChrome = Boolean(navigator.userAgent.match(/CriOS\//));
1812
+ return (isIpadIPodIPhone && (isSafari || isChrome) && actualSrc.startsWith('blob:'));
1811
1813
  };
1812
1814
  const appendVideoFragment = ({ actualSrc, actualFrom, duration, fps, }) => {
1813
1815
  var _a;
@@ -1,4 +1,4 @@
1
1
  // Automatically generated on publish
2
- const VERSION = '4.0.68';
2
+ const VERSION = '4.0.69';
3
3
 
4
4
  export { VERSION };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.68",
3
+ "version": "4.0.69",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",