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

Is there a way to have a call action to have a call showing on the other peer using this signaling server #83

Open
ahmadhaidarahmad opened this issue Mar 3, 2023 · 1 comment

Comments

@ahmadhaidarahmad
Copy link

I need to know if using this signaling server allows to add the call (audio or video) between users to be able to have like a popup notification or model with a call ring like whatsapp using webrtc. Any help would be appreciated. Thank you.

@jeanpaulsio
Copy link
Owner

Hi @ahmadhaidarahmad!

I imagine that it would be possible to surface a popup notification in the UI by adding som extra JavaScript when the connection is made and the other party joins

  pc.ontrack = (event) => {
    const element = document.createElement("video");
    element.id = `remoteVideoContainer+${userId}`;
    element.autoplay = "autoplay";
    element.srcObject = event.streams[0];
    remoteVideoContainer.appendChild(element);
  };

Maybe something in this function? Did you have a specific notification implementation in mind?

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

2 participants