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

Send a fake stream when a new connection is created #65

Open
Donorhan opened this issue Aug 9, 2022 · 0 comments
Open

Send a fake stream when a new connection is created #65

Donorhan opened this issue Aug 9, 2022 · 0 comments
Labels
enhancement New feature or request up-for-grabs

Comments

@Donorhan
Copy link
Contributor

Donorhan commented Aug 9, 2022

What is the current behavior?

Several actions are triggered when an user goes to talk to another user:

  • PeerJS notifies the user B that the user A wants to talk to him
  • The user B accepts or not the connection
  • If the connection is established, getUserMedia is triggered and returns a stream to send to the other user A
  • The user A is notified of a new connection and receives the stream from the user B

The problem is that getUserMedia can be long: from 1 to x seconds during this time the calling user does not receive any news from the remote user.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

What is the expected behavior?

What is the motivation / use case for changing the behavior?

By creating a fake stream (without sound and a black pixel) we can very quickly respond to the remote user and thus have a more pleasant experience. Then you just have to update the "tracks" of the fake stream with the real tracks.

Please tell us about your environment:

Platform: Web & Desktop
Browser: Chrome 103
Language: FR

@Donorhan Donorhan added the enhancement New feature or request label Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants