Skip to content

🎥 Make videos programmatically with React

document

Jonny Burger89d41fd0f6df
diff --git a/packages/core/src/audio/shared-audio-tags.tsx b/packages/core/src/audio/shared-audio-tags.tsx
index 016544c61d..950c2b7c4d 100644
--- a/packages/core/src/audio/shared-audio-tags.tsx
+++ b/packages/core/src/audio/shared-audio-tags.tsx
@@ -12,7 +12,14 @@ import {RemotionAudioProps} from './props';
/**
* This functionality of Remotion will keep a certain amount
- * of <audio> tags pre-mounted
+ * of <audio> tags pre-mounted and by default filled with an empty audio track.
+ * If the user interacts, the empty audio will be played.
+ * If one of Remotions <Audio /> tags get mounted, the audio will not be rendered at this location, but into one of the prerendered audio tags.
+ *
+ * This helps with autoplay issues on iOS Safari and soon other browsers,
+ * which only allow audio playback upon user interaction.
+ *
+ * The behavior can be disabled by passing `0` as the number of shared audio tracks.
*/
type AudioElem = {