Skip to content

Commit

Permalink
refactor: attempt to improve android (player)
Browse files Browse the repository at this point in the history
  • Loading branch information
ohrstrom committed Jan 29, 2025
1 parent e338f14 commit e3a467e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion obr_ui/player/hlsPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ class HlsPlayer {
}

if (isAndroid) {
log.debug("Android device");
const ctx = new window.AudioContext();
const osc = ctx.createOscillator();
const gain = ctx.createGain();
gain.gain.value = 0;
osc.connect(ctx.destination);
osc.start();
}
Expand Down

0 comments on commit e3a467e

Please sign in to comment.