Mika
Mika
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
leaveAndStop(client, voiceChannel) {
try {
const Connection = getVoiceConnection(voiceChannel.guild.id);
if (Connection !== undefined) {
Connection.disconnect();
Connection.destroy();
}
} catch (error) {
ErrorHandler.setDiscordContext("Error in SupportAudioManager > leaveAndStop()")
ErrorHandler.handleThrowable(error)
}


}
leaveAndStop(client, voiceChannel) {
try {
const Connection = getVoiceConnection(voiceChannel.guild.id);
if (Connection !== undefined) {
Connection.disconnect();
Connection.destroy();
}
} catch (error) {
ErrorHandler.setDiscordContext("Error in SupportAudioManager > leaveAndStop()")
ErrorHandler.handleThrowable(error)
}


}
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
How do I get the player at the following location:
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
So do I have to stop the audio resource for its own?
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
okay. and is there a way to fix this issue?
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
if (Connection !== undefined) {
Connection.disconnect();
Connection.destroy();
}
if (Connection !== undefined) {
Connection.disconnect();
Connection.destroy();
}
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
Ih think discord js voice is doing this
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
And how do i terminate them?
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
If i load the file from the fs i get the same error..
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
24-10-2023 20:53:19 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -11,
code: 'EAGAIN',
syscall: 'spawn /home/container/node_modules/ffmpeg-static/ffmpeg',
path: '/home/container/node_modules/ffmpeg-static/ffmpeg',
spawnargs: [
'-i',
'/home/container/sound/support/support-rp.mp3',
'-analyzeduration',
'0',
'-loglevel',
'0',
'-f',
's16le',
'-ar',
'48000',
'-ac',
'2',
'pipe:1'
]
}
24-10-2023 20:53:19 A: Error: spawn /home/container/node_modules/ffmpeg-static/ffmpeg EAGAIN
at ChildProcess._handle.onexit (node:internal/child_process:284:19)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
errno: -11,
code: 'EAGAIN',
syscall: 'spawn /home/container/node_modules/ffmpeg-static/ffmpeg',
path: '/home/container/node_modules/ffmpeg-static/ffmpeg',
spawnargs: [
'-i',
'/home/container/sound/support/support-rp.mp3',
'-analyzeduration',
'0',
'-loglevel',
'0',
'-f',
's16le',
'-ar',
'48000',
'-ac',
'2',
'pipe:1'
]
}
15 replies
DIAdiscord.js - Imagine an app
Created by Mika on 10/23/2023 in #djs-voice
ffmpeg EAGAIN
hm okay. But why does it work 35 times xD
15 replies