feat: using old voice encryption modes (for video)

This commit is contained in:
Elysia
2024-08-24 20:21:39 +07:00
parent 2cf9b36ce7
commit 7e5dd06c2b
4 changed files with 71 additions and 16 deletions

View File

@@ -22,7 +22,15 @@ class SingleSilence extends Silence {
}
}
const SUPPORTED_MODES = ['aead_aes256_gcm_rtpsize', 'aead_xchacha20_poly1305_rtpsize'];
const SUPPORTED_MODES = [
// Avalible (but only voice working)
// 'aead_aes256_gcm_rtpsize',
// 'aead_xchacha20_poly1305_rtpsize',
// Deprecated
'xsalsa20_poly1305_lite',
'xsalsa20_poly1305_suffix',
'xsalsa20_poly1305',
];
const SUPPORTED_CODECS = ['VP8', 'H264'];
/**