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

Allow manual operation on audio publications even with adaptiveStream enabled #634

Merged
merged 2 commits into from
Mar 30, 2023

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Mar 30, 2023

Previously we were restricting the setEnabled API also for audio publications in case adaptiveStream is enabled.
adaptiveStream only affects video publications, however.

@changeset-bot
Copy link

changeset-bot bot commented Mar 30, 2023

🦋 Changeset detected

Latest commit: 0e0272d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lukasIO lukasIO requested a review from davidzhao March 30, 2023 10:01
if (this.isAdaptiveStream) {
log.warn('adaptive stream is enabled, cannot change track settings', {
if (this.kind === Track.Kind.Video && this.isAdaptiveStream) {
log.warn('adaptive stream is enabled, cannot change video track settings', {
trackSid: this.trackSid,
});
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

On a different note, should there an adpativeStream mode which includes audio also? I guess it can get confusing. I was thinking a participant level adaptiveStream. If any of the video tile of a participant is visible (camera or screen share), audio is also enabled. If none are visible, audio also disabled in this mode?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think this might make sense for a narrow set of use cases, but also wondering if it's worth the mental overhead to reason about different adaptiveStream modes to support it.
FWIW, the adaptiveStream setting already can be passed in as a config object, so it's not too far fetched to think about adaptiveStream: { includeAudio: true } or something along those lines

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it will increase cognitive load. Don't think it is worth it.

@lukasIO lukasIO merged commit f085fbe into main Mar 30, 2023
@lukasIO lukasIO deleted the lukas/block-manual-video branch March 30, 2023 16:31
@github-actions github-actions bot mentioned this pull request Mar 30, 2023
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.

None yet

3 participants