Skip to content

Commit

Permalink
Reverting to native iOS audio due to issues with consistent audio play
Browse files Browse the repository at this point in the history
  • Loading branch information
JudahGabriel committed Jul 23, 2024
1 parent c79178a commit 5a53f3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Chavah.NetCore/wwwroot/js/Services/AudioPlayerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ namespace BitShuva.Chavah {
this.audio = audio;

// On the Chavah iOS app, we won't actually use HTML5 audio. See IOSAudioPlayer for details why.
//if (this.iosAudioPlayer.isIOSWebApp) {
// this.audio = this.iosAudioPlayer;
//}
if (this.iosAudioPlayer.isIOSWebApp) {
this.audio = this.iosAudioPlayer;
}

this.audio.addEventListener("ended", () => this.ended());
this.audio.addEventListener("error", args => this.erred(args));
Expand Down

0 comments on commit 5a53f3b

Please sign in to comment.