KyokoBot / koe

Tiny and embeddable Discord media transport library based on Netty.
MIT License
53 stars 14 forks source link

Received session description before protocol selection error #16

Closed Tejas12972 closed 3 years ago

Tejas12972 commented 3 years ago

Getting this in the logs WARN 27 --- [ntLoopGroup-2-2] m.k.k.gateway.VoiceGatewayV4Connection : Received session description before protocol selection? (connection id = .....)

Audio plays for a few seconds then cuts out

alula commented 3 years ago

Could you provide more details? Where and how are you using Koe? Lavalink, own software? Which voice server you're connecting to?

alula commented 3 years ago

Also this seems like Discord's bug - according to documentation you need to send a "select protocol" packet before receiving a session description, but Koe will never do that before receiving READY: https://github.com/KyokoBot/koe/blob/6bd480a258db3687a927a9c0373889574c3ad068/core/src/main/java/moe/kyokobot/koe/gateway/VoiceGatewayV4Connection.java#L77