@remotion/three 3.3.38 → 3.3.39

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,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { Video } from 'remotion';
3
- import { VideoTexture } from 'three';
3
+ import { VideoTexture } from 'three/src/textures/VideoTexture';
4
4
  export declare type UseVideoTextureOptions = React.ComponentProps<typeof Video>;
5
5
  export declare const useVideoTexture: (videoRef: React.RefObject<HTMLVideoElement>) => VideoTexture | null;
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.useVideoTexture = void 0;
27
27
  const react_1 = __importStar(require("react"));
28
28
  const remotion_1 = require("remotion");
29
- const three_1 = require("three");
29
+ const VideoTexture_1 = require("three/src/textures/VideoTexture");
30
30
  let warned = false;
31
31
  const warnAboutRequestVideoFrameCallback = () => {
32
32
  if (warned) {
@@ -43,7 +43,7 @@ const useVideoTexture = (videoRef) => {
43
43
  if (!videoRef.current) {
44
44
  throw new Error('Video not ready');
45
45
  }
46
- const vt = new three_1.VideoTexture(videoRef.current);
46
+ const vt = new VideoTexture_1.VideoTexture(videoRef.current);
47
47
  videoRef.current.width = videoRef.current.videoWidth;
48
48
  videoRef.current.height = videoRef.current.videoHeight;
49
49
  setVideoTexture(vt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/three",
3
- "version": "3.3.38",
3
+ "version": "3.3.39",
4
4
  "description": "Utility functions for using react-three-fiber with remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "remotion": "3.3.38"
23
+ "remotion": "3.3.39"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@react-three/fiber": ">=8.0.0",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "ac58695e452e58deb5c010f09bcc94d036930e6c"
58
+ "gitHead": "5a07260074fe3a6db2cdba0001503c665951414d"
59
59
  }