semantic-sdp-js
semantic-sdp-js copied to clipboard
MediaInfo.codecs type confuse
in this line
https://github.com/medooze/semantic-sdp-js/blob/master/lib/MediaInfo.js#L159
the codecs type is Map<string, CodecInfo>
and in this line
https://github.com/medooze/semantic-sdp-js/blob/master/lib/MediaInfo.js#L151
the codes type is Map<int, CodecInfo>
we should make them the same.
should be Number
thanxs for spotting that out!
@murillo128 we should check this too https://github.com/medooze/semantic-sdp-js/blob/f815d256b3719062987a2d29269563d117972ca1/lib/MediaInfo.js#L451
CodecInfo.MapFromNames still return Map<string, CodecInfo>
https://github.com/medooze/semantic-sdp-js/blob/master/lib/MediaInfo.js#L177
getCodec should return array or map too. Chrome has three profiles for h264 codec.
This would be backward incompatible, I would propose to add a new method with different name instead