Skip to content

Commit

Permalink
fix(pencil): fixed iphone playback issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AbreezaSaleem committed Apr 17, 2023
1 parent 0213f16 commit f6b4244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/waveform/playback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ function Playback() {

const playAudio = () => {
const audioELem = document.querySelector('#playback_audio') as HTMLAudioElement;
audioELem.autoplay = true;
/* play from start */
if (audioELem.readyState !== 4) {
const audioURL = window.URL.createObjectURL(new Blob([blob as BlobPart], {type: 'audio/mpeg'}));
Expand Down

0 comments on commit f6b4244

Please sign in to comment.