sdp-jingle-json
Version:
A parser/serializer for SDP to JSON. Useful for converting SDP to other formats like Jingle for WebRTC signalling
47 lines (46 loc) • 1.23 kB
JavaScript
module.exports = {
initiator: {
incoming: {
initiator: 'recvonly',
responder: 'sendonly',
both: 'sendrecv',
none: 'inactive',
recvonly: 'initiator',
sendonly: 'responder',
sendrecv: 'both',
inactive: 'none'
},
outgoing: {
initiator: 'sendonly',
responder: 'recvonly',
both: 'sendrecv',
none: 'inactive',
recvonly: 'responder',
sendonly: 'initiator',
sendrecv: 'both',
inactive: 'none'
}
},
responder: {
incoming: {
initiator: 'sendonly',
responder: 'recvonly',
both: 'sendrecv',
none: 'inactive',
recvonly: 'responder',
sendonly: 'initiator',
sendrecv: 'both',
inactive: 'none'
},
outgoing: {
initiator: 'recvonly',
responder: 'sendonly',
both: 'sendrecv',
none: 'inactive',
recvonly: 'initiator',
sendonly: 'responder',
sendrecv: 'both',
inactive: 'none'
}
}
};