-
Notifications
You must be signed in to change notification settings - Fork 70
type inconsistency in payloads #94
Copy link
Copy link
Open
Labels
Description
When the payload is only one, a number is returned. when there are multiple payloads a string is returned.
I think we should have a consistency to be able to safely parse those fields
See the following example:
media: [
{
rtp: [Array],
fmtp: [],
type: 'audio',
port: 1,
protocol: 'UDP/TLS/RTP/SAVPF',
payloads: 111, <----------------------------------------------------
connection: [Object],
rtcp: [Object],
setup: 'actpass',
mid: 'audio',
direction: 'sendrecv',
iceUfrag: '1ayI',
icePwd: 'qKHZWyBE5t576gA675kDri',
fingerprint: [Object],
candidates: [Array],
endOfCandidates: 'end-of-candidates',
ssrcs: [Array],
rtcpMux: 'rtcp-mux'
},
{
rtp: [Array],
fmtp: [Array],
type: 'video',
port: 1,
protocol: 'UDP/TLS/RTP/SAVPF',
payloads: '96 100', <----------------------------------------------------
connection: [Object],
rtcp: [Object],
rtcpFb: [Array],
setup: 'actpass',
mid: 'video',
direction: 'sendrecv',
iceUfrag: '1ayI',
icePwd: 'qKHZWyBE5t576gA675kDri',
fingerprint: [Object],
candidates: [Array],
endOfCandidates: 'end-of-candidates',
ssrcs: [Array],
rtcpMux: 'rtcp-mux'
}
]
Reactions are currently unavailable