Is it theoretically possible to relay all substreams to videoroom webrtc subscribers?
We had implemented our server/server publishing schema with republishing subscriber webrtc to remote janus server before remote publishers were added to janus, so it is very hard now to switch to the new schema. But we have a problem with simulcast between servers isn’t working now and we use client-side configure calls to switch between mids of publishers from other servers to obtain desired quality on layout changes.
We also integrated with some external systems, which accepts simulcast publishing via webrtc, which isn’t compatible with remote publishers of janus now afaik.
I looked into code and rtp relay bases on current simulcast context of subscriber in janus_rtp_simulcasting_context_process_rtp
function. What if I’ll add relay_all flag on subscriber and always relay all packets to subscriber? I also see magic with payload descriptors happens in janus_vp8_simulcast_descriptor_update before relay(this might be a problem with relay_all approach? I need to set it for each subscriber and substream individually or relay it as i?).
Is it my idea with relay_all
flag would work or not? Any hidden complexities in such approach?
I appreciate any advices. Thank you