the receiver subscription (opus stream) haves the end method = 0

createListeningStream(usersIds, writeStream) { const receiver = this.connection.receiver; this.opusStream = []; // console.log(usersIds); usersIds.forEach((userId) => { const opusStream = receiver.subscribe(userId); const opusDecoder = new prism.opus.Decoder({ frameSize: 960, channels: 2, rate: 48000, }); this.opusStream = opusStream; console.log(this.opusStream.end); opusStream.pipe(opusDecoder).pipe(writeStream); }); this.emit('create-listining-stream'); return this; } I think thats comming from the end behaviour that i had set
1 Reply
d.js toolkit
d.js toolkit8mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
Want results from more Discord servers?
Add your server