Skip to content

Demonstrate data streams #6

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 2 commits into
base: main
Choose a base branch
from
Open

Demonstrate data streams #6

wants to merge 2 commits into from

Conversation

ladvoc
Copy link

@ladvoc ladvoc commented Apr 1, 2025

Summary of changes:

  • Adds text stream handler for "some-topic", logs incoming messages
  • Uses send text instead of publish data for sending messages

Depends on data streams support introduced in livekit/client-sdk-unity#89.

@ladvoc ladvoc requested a review from cloudwebrtc April 9, 2025 05:36
room.LocalParticipant.PublishData(enc);
}

private IEnumerator HandleTextStream(TextStreamReader reader, string identity)
Copy link
Contributor

Choose a reason for hiding this comment

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

The following code seems to have been removed in the last commit and forgotten to be added before room.connect?

	room.RegisterTextStreamHandler("my-topic", (data, identity) =>
                StartCoroutine(HandleTextStream(data, identity))
            );

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