Skip to content

Commit

Permalink
ar(fix) DPCP-44: Audio Player disable autoPlay. (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloreale authored Aug 5, 2024
1 parent 6f64236 commit 4a6fd29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/molecules/02_AudioPlayer/AudioPlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface IAudioPlayer {
tracks?: IAudioTrack[];
onPlayTrack?: () => void;
nativeControls?: boolean;
autoPlay?: boolean;
prompt?: string;
theme?: 'light' | 'dark';
}
Expand All @@ -60,6 +61,7 @@ export const HAudioPlayer = function ({
tracks = DEFAULT_TRACKS,
onPlayTrack = () => {},
nativeControls = false,
autoPlay = false,
prompt = 'Rotation portals',
theme = 'light',
}: IAudioPlayer) {
Expand Down Expand Up @@ -134,7 +136,7 @@ export const HAudioPlayer = function ({
src={tracks[0].url}
controls={nativeControls}
ref={audioElement}
autoPlay
autoPlay={autoPlay}
preload="none"
>
{tracks.map((file) => (
Expand Down

0 comments on commit 4a6fd29

Please sign in to comment.