Skip to content

Refactor codec interface, allow using codecs without RTP#51

Merged
dennwc merged 2 commits intomainfrom
codec-refactor
Apr 8, 2026
Merged

Refactor codec interface, allow using codecs without RTP#51
dennwc merged 2 commits intomainfrom
codec-refactor

Conversation

@dennwc
Copy link
Copy Markdown
Collaborator

@dennwc dennwc commented Apr 7, 2026

This change reverts a previous PR that obliterated type-safety in the media pipeline to be able to use codecs directly (without RTP streams).

Instead, move codecs out of the RTP package and introduce an intermediate interface. This allows using codecs directly with binary streams. From Go's perspective, there's also a non-generic audio codec interface now, so any codec can be used directly without type assertions (which was the reasoning for the previous PR).

Old path still works as well and is simpler now. SIP will require a tiny update to use the new interface.

@dennwc dennwc merged commit ffe36f6 into main Apr 8, 2026
2 checks passed
@dennwc dennwc deleted the codec-refactor branch April 8, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants