Files
Testing/videocall1/getStats/dev/googCertificate.js

15 lines
560 B
JavaScript
Raw Permalink Normal View History

2026-11-17 16:15:01 -05:00
getStatsParser.googCertificate = function(result) {
if (result.type == 'googCertificate') {
getStatsResult.encryption = result.googFingerprintAlgorithm;
}
// Safari-11 or higher
if (result.type == 'certificate') {
// todo: is it possible to have different encryption methods for senders and receivers?
// if yes, then we need to set:
// getStatsResult.encryption.local = value;
// getStatsResult.encryption.remote = value;
getStatsResult.encryption = result.fingerprintAlgorithm;
}
};