Skip to content
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

Dynacast #62

Merged
merged 9 commits into from
Jan 3, 2022
Merged

Dynacast #62

merged 9 commits into from
Jan 3, 2022

Conversation

hiroshihorie
Copy link
Member

@hiroshihorie hiroshihorie commented Dec 21, 2021

LK-352

For non-simulcast, what is the desired behavior ?

@hiroshihorie hiroshihorie changed the title Subscribed Quality Update Dynacast Jan 1, 2022
@hiroshihorie hiroshihorie marked this pull request as ready for review January 1, 2022 19:49
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

this looks good! Question, does this work across platforms with flutter-webrtc translating the RTPSender params?

// If there is exact match, use it
if (e.quality.toRid() == encoding.rid) return true;
// Use first layer found if not simulcast
if (encoding.rid == null && encodings.length == 1) return true;
Copy link
Member

Choose a reason for hiding this comment

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

when RID isn't defined, we should specifically match it to LOW quality layer. The protocol doesn't guarantee layers to come in in any specific order. (even tho low comes in first).

return false;
});
if (layer != null && encoding.active != layer.enabled) {
encoding.active = layer.enabled;
Copy link
Member

Choose a reason for hiding this comment

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

since Flutter includes web, it'll likely suffer from the same issue as web SDK with FireFox. I think it'd be good to put a comment in here, but it's fine if we don't handle it right now.

Copy link

Choose a reason for hiding this comment

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

Is flutter-webrtc using Firefox's WebRTC library for web?

Copy link
Member

Choose a reason for hiding this comment

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

they simply translate into equivalent calls from dart to JS. So any browser specific implementation quirks will still remain

@hiroshihorie
Copy link
Member Author

this looks good! Question, does this work across platforms with flutter-webrtc translating the RTPSender params?

I hope it does a good job translating the params but if it doesn't we need to make a PR...

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.

3 participants