remotion
Advanced tools
Comparing version 4.0.272 to 4.0.273
import React from 'react'; | ||
import type { RemotionMainAudioProps } from './props.js'; | ||
export declare const Audio: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "nonce" | "onEnded" | "onResize" | "onResizeCapture" | "autoPlay" | "controls"> & { | ||
export declare const Audio: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "nonce" | "onEnded" | "onResize" | "onResizeCapture" | "controls" | "autoPlay"> & { | ||
name?: string; | ||
@@ -5,0 +5,0 @@ volume?: import("../volume-prop.js").VolumeProp; |
@@ -7,2 +7,6 @@ "use strict"; | ||
const use_buffer_state_1 = require("./use-buffer-state"); | ||
const isWebkit = () => { | ||
const isAppleWebKit = /AppleWebKit/.test(window.navigator.userAgent); | ||
return isAppleWebKit; | ||
}; | ||
const useBufferUntilFirstFrame = ({ mediaRef, mediaType, onVariableFpsVideoDetected, pauseWhenBuffering, logLevel, mountTime, }) => { | ||
@@ -23,3 +27,9 @@ const bufferingRef = (0, react_1.useRef)(false); | ||
} | ||
if (current.readyState >= current.HAVE_ENOUGH_DATA) { | ||
(0, playback_logging_1.playbackLogging)({ | ||
logLevel, | ||
message: `Checking if should buffer until first frame, ${current.readyState}`, | ||
mountTime, | ||
tag: 'buffer', | ||
}); | ||
if (current.readyState >= current.HAVE_ENOUGH_DATA && !isWebkit()) { | ||
return; | ||
@@ -26,0 +36,0 @@ } |
@@ -154,3 +154,3 @@ "use strict"; | ||
lastSeekDueToShift.current = lastSeek.current; | ||
if (playing && !isVariableFpsVideo) { | ||
if (playing) { | ||
if (playbackRate > 0) { | ||
@@ -157,0 +157,0 @@ bufferUntilFirstFrame(shouldBeTime); |
@@ -6,2 +6,2 @@ /** | ||
*/ | ||
export declare const VERSION = "4.0.272"; | ||
export declare const VERSION = "4.0.273"; |
@@ -10,2 +10,2 @@ "use strict"; | ||
*/ | ||
exports.VERSION = '4.0.272'; | ||
exports.VERSION = '4.0.273'; |
import React from 'react'; | ||
import type { RemotionMainVideoProps } from './props'; | ||
export declare const Video: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "autoPlay" | "controls" | "disableRemotePlayback"> & { | ||
export declare const Video: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "nonce" | "onError" | "onEnded" | "controls" | "disableRemotePlayback" | "autoPlay"> & { | ||
name?: string; | ||
@@ -5,0 +5,0 @@ volume?: import("../volume-prop.js").VolumeProp; |
@@ -6,3 +6,3 @@ { | ||
"name": "remotion", | ||
"version": "4.0.272", | ||
"version": "4.0.273", | ||
"description": "Make videos programmatically", | ||
@@ -32,3 +32,3 @@ "main": "dist/cjs/index.js", | ||
"eslint": "9.19.0", | ||
"@remotion/eslint-config-internal": "4.0.272" | ||
"@remotion/eslint-config-internal": "4.0.273" | ||
}, | ||
@@ -35,0 +35,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
703199
18093