We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
function ipAddressFromSdp(sdp: string) { const m = sdp.match(/^IN (IP4|IP6) ([^ ]+)$/); if (!m) throw new Error("exception"); return m[2]; }
According to https://www.ietf.org/rfc/rfc3605.txt
m=audio 49170 RTP/AVP 0 a=rtcp:53020
is valid. In such case, there is no IP address.
The text was updated successfully, but these errors were encountered:
Suggested change:
function ipAddressFromSdp(sdp: string) { const m = sdp.match(/^IN (IP4|IP6) ([^ ]+)$/); if (!m) return undefined; return m[2]; }
Or
function ipAddressFromSdp(sdp: string) { const m = sdp.match(/^IN (IP4|IP6) ([^ ]+)$/); if (!m) return '0.0.0.0'; return m[2]; }
Sorry, something went wrong.
No branches or pull requests
According to https://www.ietf.org/rfc/rfc3605.txt
is valid. In such case, there is no IP address.
The text was updated successfully, but these errors were encountered: