🎥 Make videos programmatically with React
Update Audio.tsx
Jonny Burger4d3a0b811416
diff --git a/packages/core/src/audio/Audio.tsx b/packages/core/src/audio/Audio.tsxindex f332d104ed..cb0f5ee081 100644--- a/packages/core/src/audio/Audio.tsx+++ b/packages/core/src/audio/Audio.tsx@@ -14,7 +14,7 @@ const AudioRefForwardingFunction: React.ForwardRefRenderFunction<const {startFrom, endAt, ...otherProps} = props;const onError = useCallback(() => {- throw new Error(`Could not play video with src ${otherProps.src}`);+ throw new Error(`Could not play audio with src ${otherProps.src}`);}, [otherProps.src]);if (typeof startFrom !== 'undefined' || typeof endAt !== 'undefined') {