Moebytes
Moebytes
DIAdiscord.js - Imagine an app
Created by Moebytes on 8/22/2024 in #djs-voice
Seek option removed
K I guess I got it to work like before by tracking the file before seeking and the seek offset. A lot more annoying than in v12 but at least this is solved for me
7 replies
DIAdiscord.js - Imagine an app
Created by Moebytes on 8/22/2024 in #djs-voice
Seek option removed
I don't really like this because it cuts the actual file and if for instance you want to loop it would loop the cut file rather than the full one. It also messes up playbackDuration and you have to track how much you seeked manually.
7 replies
DIAdiscord.js - Imagine an app
Created by Moebytes on 8/22/2024 in #djs-voice
Seek option removed
Would it be used like this?
const readStream = fs.createReadStream(file)
const seekOpts = new FFmpeg({args: ["-ss", String(start)]})
const seekedStream = readStream.pipe(seekOpts)
const stream = createAudioResource(seekedStream, {inlineVolume: true})
const readStream = fs.createReadStream(file)
const seekOpts = new FFmpeg({args: ["-ss", String(start)]})
const seekedStream = readStream.pipe(seekOpts)
const stream = createAudioResource(seekedStream, {inlineVolume: true})
7 replies