Interface NettyEncryptor

All Superinterfaces:
AutoCloseable, Encryptor

public interface NettyEncryptor extends Encryptor
  • Method Details

    • encrypt

      int encrypt(MediaType mediaType, int ssrc, io.netty.buffer.ByteBuf frame, io.netty.buffer.ByteBuf encryptedFrame)
      Encrypts a media frame into Netty ByteBuf.
      Parameters:
      mediaType - The type of media.
      ssrc - The SSRC of the stream.
      frame - The input ByteBuf containing the plaintext frame.
      encryptedFrame - The output ByteBuf to write the encrypted frame into.
      Returns:
      The number of bytes written to encryptedFrame on success, or a negative error code on failure.