action-cable-signaling-server
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
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.
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?