/* Wrapper generated by lp-gen-wrappers, do not edit*/
var linphone = linphone || {};
/**
* Enum describing type of media encryption types.
* @readonly
* @enum {number}
**/
linphone.MediaEncryption = {
/**
* No media encryption is used
*/
None : 0,
/**
* Use SRTP media encryption
*/
SRTP : 1,
/**
* Use ZRTP media encryption
*/
ZRTP : 2
};
/**
* Get the name of a value of the MediaEncryption enum as a string.
* @function linphone#getMediaEncryptionText
* @param { number } value - One of the values of the MediaEncryption enum.
**/
linphone.getMediaEncryptionText = function(value) {
switch (value) {
case linphone.MediaEncryption.None:
return "None";
case linphone.MediaEncryption.SRTP:
return "SRTP";
case linphone.MediaEncryption.ZRTP:
return "ZRTP";
default:
return "?";
}
};