{"action":"created","issue":{"url":"https://api.github.com/repos/openpeer/ortc/issues/405","repository_url":"https://api.github.com/repos/openpeer/ortc","labels_url":"https://api.github.com/repos/openpeer/ortc/issues/405/labels{/name}","comments_url":"https://api.github.com/repos/openpeer/ortc/issues/405/comments","events_url":"https://api.github.com/repos/openpeer/ortc/issues/405/events","html_url":"https://github.com/openpeer/ortc/issues/405","id":138445885,"number":405,"title":"[RtpParameters] Spec should state that `codec.payloadType` must be unique","user":{"login":"ibc","id":16191,"avatar_url":"https://avatars.githubusercontent.com/u/16191?v=3","gravatar_id":"","url":"https://api.github.com/users/ibc","html_url":"https://github.com/ibc","followers_url":"https://api.github.com/users/ibc/followers","following_url":"https://api.github.com/users/ibc/following{/other_user}","gists_url":"https://api.github.com/users/ibc/gists{/gist_id}","starred_url":"https://api.github.com/users/ibc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ibc/subscriptions","organizations_url":"https://api.github.com/users/ibc/orgs","repos_url":"https://api.github.com/users/ibc/repos","events_url":"https://api.github.com/users/ibc/events{/privacy}","received_events_url":"https://api.github.com/users/ibc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-04T11:03:19Z","updated_at":"2016-03-09T02:17:21Z","closed_at":null,"body":"If two codecs (let's say VP8 and VP9) within the same `RtpParameters` share the same `payloadType: 100` then the world explodes (although it may be valid in the ORTC syntax).\r\n\r\nIMHO the spec should state that  `codec.payloadType` must be unique within the same `RtpParameters.codecs`."},"comment":{"url":"https://api.github.com/repos/openpeer/ortc/issues/comments/194073702","html_url":"https://github.com/openpeer/ortc/issues/405#issuecomment-194073702","issue_url":"https://api.github.com/repos/openpeer/ortc/issues/405","id":194073702,"user":{"login":"aboba","id":808811,"avatar_url":"https://avatars.githubusercontent.com/u/808811?v=3","gravatar_id":"","url":"https://api.github.com/users/aboba","html_url":"https://github.com/aboba","followers_url":"https://api.github.com/users/aboba/followers","following_url":"https://api.github.com/users/aboba/following{/other_user}","gists_url":"https://api.github.com/users/aboba/gists{/gist_id}","starred_url":"https://api.github.com/users/aboba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aboba/subscriptions","organizations_url":"https://api.github.com/users/aboba/orgs","repos_url":"https://api.github.com/users/aboba/repos","events_url":"https://api.github.com/users/aboba/events{/privacy}","received_events_url":"https://api.github.com/users/aboba/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T02:17:21Z","updated_at":"2016-03-09T02:17:21Z","body":"RtpParameters.codecs.payloadType should be unique, or an exception should be thrown. \r\n\r\nencodings[].codecPayloadType points to the codec to use within the codec list and so must match a value specified within RtpParameters.codecs.payloadType codec list. So if it is unset or there is no match that seems like cause for an exception. Having the browser choose encodings[].codecPayloadType makes no sense to me."}}