Skip to content

support video input from screenshare #2127

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

longcw
Copy link
Contributor

@longcw longcw commented Apr 25, 2025

  1. always use the latest published video track (camera or screenshare), close the screenshare will switch back to camera if any
  2. close and reopen (mute or unmute) the camera when it reads from the screenshare it won’t switch to the camera until the screen share stopped

@longcw longcw requested a review from a team April 25, 2025 09:38
Copy link
Contributor

github-actions bot commented Apr 25, 2025

✅ Changeset File Detected

The following changeset entries were found:

  • patch - livekit-agents

Change description:
support video input from screenshare (#2127)

Copy link
Contributor

@bcherry bcherry left a comment

Choose a reason for hiding this comment

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

makes sense to me, thanks for adding this!

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.

lg

@@ -50,7 +58,7 @@ def on_attached(self) -> None:
"input stream attached",
extra={
"participant": self._participant_identity,
"source": rtc.TrackSource.Name(self._track_source),
Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine to keep the singular source. for consistency when using Datadog or other search tools, it's far easier to search for source always, instead of trying to figure out to specify sources or source

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