<div class="coolUpdates">
This library requires a working FFMpeg install. You will need both FFMpeg and FFProbe binaries to use it. Be sure that these binaries can be located with system PATH to get the benefit of the binary detection, otherwise you should have to explicitly give the binaries path on load.
// mixin
let sayHiMixin = {
sayHi() {
alert(`Hello ${this.name}`);
},
sayBye() {
alert(`Bye ${this.name}`);
}
};
// usage:
class User {
constructor(name) {
this.name = name;
}
}
// copy the methods
Object.assign(User.prototype, sayHiMixin);
// now User can say hi
new User("Dude").sayHi(); // Hello Dude!
ffmpeg \
-i SOURCE_FILE \
-af "arnndn=model=MODEL_FILE:mix=1" \
OUTPUT_FILE
std.rnnn
// вместо
(arrNum.length > 0)
? section.innerHTML = `${arrNum.reduceRight((sum, current) => sum + current)}`
: (arrNum.length === 0)
? section.innerHTML = `А суммировать то нечего ${arrNum}`
: section.innerHTML = `Массив arrNum - пустой или там только 1 знаечние.`
// лучше
section.innerHTML =
arrNum.length > 0
? `${arrNum.reduceRight((sum, current) => sum + current)}`
: arrNum.length === 0
? `А суммировать то нечего ${arrNum}`
: `Массив arrNum - пустой или там только 1 знаечние.`;
subtree: true
. Читать документацию, понимать, пробовать простые изолированные тесты делать.