Interface ConnectionHandler<R>

Type Parameters:
R - type of the result returned if connection succeeds
All Known Implementing Classes:
DiscordUDPConnection

public interface ConnectionHandler<R>
This interface specifies Discord voice connection handler, allowing to implement other methods of establishing voice connections/transmitting audio packets eg. TCP or browser/WebRTC way via ICE instead of their minimalistic custom discovery protocol.
  • Method Details

    • close

      void close()
    • handleSessionDescription

      void handleSessionDescription(JsonObject object)
    • sendFrame

      default void sendFrame(CodecInstance codec, int timestamp, io.netty.buffer.ByteBuf data, int start)
    • connect

      CompletionStage<R> connect()
    • sendFrame

      void sendFrame(CodecType codecType, byte payloadType, int timestamp, io.netty.buffer.ByteBuf data, int start, boolean extension)