action-cable-signaling-server icon indicating copy to clipboard operation
action-cable-signaling-server copied to clipboard

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

Open ahmadhaidarahmad opened this issue 2 years ago • 1 comments

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.

ahmadhaidarahmad avatar Mar 03 '23 22:03 ahmadhaidarahmad

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?

jeanpaulsio avatar Apr 23 '23 02:04 jeanpaulsio