C⁶H¹²O⁶
C⁶H¹²O⁶
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
thanks alot
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
ok
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
do you have any idea?
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
but the writestream is gridfsbucket for mongodb is not getting saved in collection.files, but chunks get saved at collection.chunks
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
createListeningStream(usersIds, writeStream, end) { const receiver = this.connection.receiver; this.opusStream = []; usersIds.forEach((userId) => { const opusStream = receiver.subscribe(userId, { end: EndBehaviorType.Manual, }); const opusDecoder = new prism.opus.Decoder({ frameSize: 960, channels: 2, rate: 48000, }); this.opusStream = opusStream; opusStream.pipe(opusDecoder).pipe(writeStream); }); this.emit('create-listining-stream'); return this; } Simply the opus stream gets destroyed
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
its a streams thing
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
can you help?
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
but no one answers in all the servers
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
also wait i need your help please quickly with something else, not really djs related
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
oh, yeah it is destroyed
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
let me put those in the same func
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
just a second
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
the timeout is 0
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
its a class Player
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
stopListining(after = 0) {
setTimeout(() => this.opusStream.destroy(), after);
this.emit('stop-listining-stream');
console.log(this.opusStream.destroyed);
return this;
}
stopListining(after = 0) {
setTimeout(() => this.opusStream.destroy(), after);
this.emit('stop-listining-stream');
console.log(this.opusStream.destroyed);
return this;
}
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
just a second
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
yes
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
coz .destroyed is false
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
must i await destroy() ?
37 replies
DIAdiscord.js - Imagine an app
Created by C⁶H¹²O⁶ on 4/5/2024 in #djs-voice
How do i close a receiver subscription (opus stream)
ohk, thanks alot
37 replies