Skip to content

Commit

Permalink
fix js-panic if audio transcoding disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Jan 27, 2025
1 parent 8e8e4ff commit 54a7256
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions copyparty/web/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2425,6 +2425,11 @@ var mpl = (function () {
};

r.init_ac2 = function (v) {
if (!window.have_acode) {
r.ac2 = 'opus';
return;
}

var dv = can_ogg ? 'opus' : can_caf ? 'caf' : 'mp3',
fmts = ['opus', 'owa', 'caf', 'mp3'],
btns = [];
Expand Down

0 comments on commit 54a7256

Please sign in to comment.