mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
fix js-panic if audio transcoding disabled
This commit is contained in:
parent
8e8e4ff132
commit
54a7256c8d
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue