webrtcsink: Add support for encoded streams
-
webrtc: Unify the Codec structure between sink and source
-
webrtcsink: Add support for pre encoded streams
This is a first step where we try to replicate encoding conditions from the input stream into the discovery pipeline. A second patch will implement using input buffers in the discovery pipelines. -
webrtcsink: Move discovery to using input buffers directly
Instead of trying to replicate buffers thatwebrtcsink
is getting as input with testsrc, directly run discovery based on the real buffers. This way we are sure we work with the exact right stream type and we don't need encoders to support encoding streams inputs.We use the same logic for both encoded and raw input to avoid having several code paths and makes it all more correct in any case.