UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

28 lines 811 B
class TransceiverUtil { static getNextTransceiverDirection(currentDirection, removeRemoteVideo) { if (removeRemoteVideo) { if (currentDirection === 'sendrecv') { return 'sendonly'; } else if (currentDirection === 'recvonly') { return 'inactive'; } else { return currentDirection; } } else { if (currentDirection === 'sendonly') { return 'sendrecv'; } else if (currentDirection === 'inactive') { return 'recvonly'; } else { return currentDirection; } } } } export default TransceiverUtil; //# sourceMappingURL=TransceiverUtil.js.map