Skip to content

Add basic simulcast messages#6

Merged
roznawsk merged 4 commits intomasterfrom
simulcast
Nov 25, 2024
Merged

Add basic simulcast messages#6
roznawsk merged 4 commits intomasterfrom
simulcast

Conversation

@roznawsk
Copy link
Copy Markdown
Member

@roznawsk roznawsk commented Nov 7, 2024

Add minimal set of simulcast messages, allowing for sending simulcast tracks, and receiving them with manual variant selection.

I propose only providing bitrates for simulcast tracks. The bitrate values in Engine are used solely for calculating the appropriate variant sent to other peers. So any bitrate values sent for non-simulcast tracks are just ignored.

I also removed Reason from the VariantSwitched message. The reason is not used in Web Client and its only role (if any) would be to provide feedback to users, which is not important.

@roznawsk roznawsk requested a review from Karolk99 November 7, 2024 11:58
@roznawsk roznawsk force-pushed the simulcast branch 2 times, most recently from 94b10c5 to d61a635 Compare November 13, 2024 14:23
@roznawsk roznawsk force-pushed the simulcast branch 2 times, most recently from 598e8b8 to e8e6a00 Compare November 22, 2024 14:33
Comment thread fishjam/media_events/peer/peer.proto Outdated
@@ -43,7 +50,19 @@ message MediaEvent {
// Sent when Peer wants to update its track's bitrate
message TrackBitrate {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
message TrackBitrate {
message TrackBitrates {

repeated media_events.Variant disabled_variants = 3;
}

string track_id = 1;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

track_id is not needed as it's map now

Suggested change
string track_id = 1;

// Defines any type of message sent from Membrane RTC Engine to Peer
message MediaEvent {
// SCHEMAS
message Track {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all occurence of map<string, string> track_id_to_metadata_json should probably be map<string, Track> track_id_to_track

@roznawsk roznawsk requested a review from Karolk99 November 22, 2024 15:41
@roznawsk roznawsk merged commit 7a5492b into master Nov 25, 2024
@roznawsk roznawsk deleted the simulcast branch November 25, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants