-
Notifications
You must be signed in to change notification settings - Fork 0
Add codec information to manifest #5
New issue
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
Conversation
| } | ||
| end | ||
|
|
||
| defp parse_codec(nil), do: nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this will be "nil" if read from the serialized JSON.
If you have the time, you could consider writing unit tests for this module -- since it looks like we'll continue extending the Recorder, adding tests will help ensure basic functionality like this keeps working with further changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the value returned by Jason.decode!(json_string) is passed to from_json!() (see converter.ex:134); Jason.decode/1 converts JSON null to Elixir nil, and I added tests to confirm this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, my bad. I assumed it behaved the same way as our rid_map, where we do "nil" -> nil ourselves
sgfn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
When the first RTP packet containing codec information is received, we update our track_data to include this codec.