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

Broadcasting voice/audio to all users #7

Open
hugoponthieu opened this issue May 12, 2024 · 0 comments
Open

Broadcasting voice/audio to all users #7

hugoponthieu opened this issue May 12, 2024 · 0 comments

Comments

@hugoponthieu
Copy link
Member

hugoponthieu commented May 12, 2024

Implementing audio/video transport

You should first complete #19 and #27.
We need to implement the service to broadcast audio and video. We are using web sockets to stream those data. You can see here what are the flow we want to implement.

The method should be implemented in the gateway. The "audio" message is emitted with a StreamPayload that should look likes this:

interface StreamPayload {
	channel_id: string
	audio: Blob
}

When "audio" message is received by the server the server re-emit in all sockets of the same room the StreamPayload

You can see an implementation here
You can see more specification of that flow here.

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

No branches or pull requests

1 participant