Skip to content

jitsi/jitsi-srtp

Repository files navigation

dnsjava CI codecov Maven Central javadoc

Jitsi SRTP

Jitsi SRTP contains classes for encrypting and decrypting SRTP and SRTCP packets.

Building with Java changes only

To avoid having to build all native libraries, execute resources/fetch-maven.sh to download and extract the native binaries from the latest release on Maven Central.

Building the native libraries

Jitsi SRTP contains native libraries to speed up encryption/decryption. The artifacts released to Maven Central contain pre-built binaries for Ubuntu for OpenSSL 1.1 and 3.

Please take a look at the GitHub Actions build before asking for more detailed build instructions!

Ubuntu

Prerequisites:

  • OpenJDK 11 (or newer)
  • Maven
  • Docker

Run mvn compile to generate the JNI headers, then run resources/ubuntu-build-all.sh. The script creates Docker images for each architecture and OpenSSL version.

Mac

Prerequisites:

  • OpenJDK 11 (or newer) for the intended architectures
  • XCode
  • CMake
  • Maven
  • OpenSSL (intended version and architecture)

Run mvn compile to generate the JNI headers, then run resources/mac-cmake.sh .