@remotion/cli 3.3.15 → 3.3.16

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.
@@ -8,4 +8,5 @@ export declare const AudioWaveform: React.FC<{
8
8
  setMaxMediaDuration: React.Dispatch<React.SetStateAction<number>>;
9
9
  volume: string | number;
10
10
  doesVolumeChange: boolean;
11
+ playbackRate: number;
11
12
  }>;
@@ -26,7 +26,7 @@ const errorMessage = {
26
26
  const canvasStyle = {
27
27
  position: 'absolute',
28
28
  };
29
- const AudioWaveform = ({ src, fps, startFrom, durationInFrames, visualizationWidth, setMaxMediaDuration, volume, doesVolumeChange, }) => {
29
+ const AudioWaveform = ({ src, fps, startFrom, durationInFrames, visualizationWidth, setMaxMediaDuration, volume, doesVolumeChange, playbackRate, }) => {
30
30
  const [metadata, setMetadata] = (0, react_1.useState)(null);
31
31
  const [error, setError] = (0, react_1.useState)(null);
32
32
  const mountState = (0, react_1.useRef)({ isMounted: true });
@@ -93,10 +93,17 @@ const AudioWaveform = ({ src, fps, startFrom, durationInFrames, visualizationWid
93
93
  return (0, media_utils_1.getWaveformPortion)({
94
94
  audioData: metadata,
95
95
  startTimeInSeconds: startFrom / fps,
96
- durationInSeconds: durationInFrames / fps,
96
+ durationInSeconds: (durationInFrames / fps) * playbackRate,
97
97
  numberOfSamples,
98
98
  });
99
- }, [durationInFrames, fps, metadata, startFrom, visualizationWidth]);
99
+ }, [
100
+ durationInFrames,
101
+ fps,
102
+ metadata,
103
+ playbackRate,
104
+ startFrom,
105
+ visualizationWidth,
106
+ ]);
100
107
  if (error) {
101
108
  return ((0, jsx_runtime_1.jsx)("div", { style: container, children: (0, jsx_runtime_1.jsx)("div", { style: errorMessage, children: "No waveform available. Audio might not support CORS." }) }));
102
109
  }
@@ -67,6 +67,6 @@ const TimelineSequence = ({ s, fps }) => {
67
67
  };
68
68
  }, []);
69
69
  const thumbnailWidth = timeline_layout_1.TIMELINE_LAYER_HEIGHT * (video.width / video.height);
70
- return ((0, jsx_runtime_1.jsxs)("div", { style: style, title: s.displayName, children: [(0, jsx_runtime_1.jsx)("div", { style: row, children: richTimeline && s.type === 'sequence' ? ((0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { targetHeight: timeline_layout_1.TIMELINE_LAYER_HEIGHT, targetWidth: thumbnailWidth, composition: video, frameToDisplay: Math.floor(s.from + s.duration / 2) })) : null }), s.type === 'audio' ? ((0, jsx_runtime_1.jsx)(AudioWaveform_1.AudioWaveform, { src: s.src, doesVolumeChange: s.doesVolumeChange, visualizationWidth: width, startFrom: s.startMediaFrom, durationInFrames: s.duration, fps: fps, volume: s.volume, setMaxMediaDuration: setMaxMediaDuration })) : null, s.type === 'video' ? (0, jsx_runtime_1.jsx)(TimelineVideoInfo_1.TimelineVideoInfo, { src: s.src }) : null, s.showLoopTimesInTimeline === undefined ? null : ((0, jsx_runtime_1.jsx)(LoopedTimelineIndicators_1.LoopedTimelineIndicator, { loops: s.showLoopTimesInTimeline }))] }, s.id));
70
+ return ((0, jsx_runtime_1.jsxs)("div", { style: style, title: s.displayName, children: [(0, jsx_runtime_1.jsx)("div", { style: row, children: richTimeline && s.type === 'sequence' ? ((0, jsx_runtime_1.jsx)(Thumbnail_1.Thumbnail, { targetHeight: timeline_layout_1.TIMELINE_LAYER_HEIGHT, targetWidth: thumbnailWidth, composition: video, frameToDisplay: Math.floor(s.from + s.duration / 2) })) : null }), s.type === 'audio' ? ((0, jsx_runtime_1.jsx)(AudioWaveform_1.AudioWaveform, { src: s.src, doesVolumeChange: s.doesVolumeChange, visualizationWidth: width, startFrom: s.startMediaFrom, durationInFrames: s.duration, fps: fps, volume: s.volume, setMaxMediaDuration: setMaxMediaDuration, playbackRate: s.playbackRate })) : null, s.type === 'video' ? (0, jsx_runtime_1.jsx)(TimelineVideoInfo_1.TimelineVideoInfo, { src: s.src }) : null, s.showLoopTimesInTimeline === undefined ? null : ((0, jsx_runtime_1.jsx)(LoopedTimelineIndicators_1.LoopedTimelineIndicator, { loops: s.showLoopTimesInTimeline }))] }, s.id));
71
71
  };
72
72
  exports.TimelineSequence = TimelineSequence;
@@ -524,7 +524,7 @@ const useMenuStructure = (closeMenu) => {
524
524
  label: 'Twitter',
525
525
  onClick: () => {
526
526
  closeMenu();
527
- openExternal('https://twitter.com/remotion_dev');
527
+ openExternal('https://twitter.com/remotion');
528
528
  },
529
529
  type: 'item',
530
530
  keyHint: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/cli",
3
- "version": "3.3.15",
3
+ "version": "3.3.16",
4
4
  "description": "CLI for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": false,
@@ -22,16 +22,16 @@
22
22
  "author": "Jonny Burger <jonny@remotion.dev>",
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "dependencies": {
25
- "@remotion/bundler": "3.3.15",
26
- "@remotion/media-utils": "3.3.15",
27
- "@remotion/player": "3.3.15",
28
- "@remotion/renderer": "3.3.15",
25
+ "@remotion/bundler": "3.3.16",
26
+ "@remotion/media-utils": "3.3.16",
27
+ "@remotion/player": "3.3.16",
28
+ "@remotion/renderer": "3.3.16",
29
29
  "better-opn": "2.1.1",
30
30
  "dotenv": "9.0.2",
31
31
  "memfs": "3.4.3",
32
32
  "minimist": "1.2.6",
33
33
  "prompts": "2.4.1",
34
- "remotion": "3.3.15",
34
+ "remotion": "3.3.16",
35
35
  "semver": "7.3.5",
36
36
  "source-map": "0.6.1"
37
37
  },
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "2fc46f12fd00b0f4eace6398e5eaa054210928ea"
75
+ "gitHead": "f9ad91106fe6fbcc61a25d917cc526a995d9322c"
76
76
  }