mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -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) {
|
r.init_ac2 = function (v) {
|
||||||
|
if (!window.have_acode) {
|
||||||
|
r.ac2 = 'opus';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var dv = can_ogg ? 'opus' : can_caf ? 'caf' : 'mp3',
|
var dv = can_ogg ? 'opus' : can_caf ? 'caf' : 'mp3',
|
||||||
fmts = ['opus', 'owa', 'caf', 'mp3'],
|
fmts = ['opus', 'owa', 'caf', 'mp3'],
|
||||||
btns = [];
|
btns = [];
|
||||||
|
|
Loading…
Reference in a new issue