signalwire/signalwire-node

Question - Make a video call with Verto

Closed this issue · 4 comments

Hi guys!

I'm trying to do a video call with Verto.ts and verto module.

I could do a video call using Relay/Signalwire, but I couldn't do a video call with Verto.

Using Verto.ts I only could show the local video image, but the remote video didn't show. I use the same code that Relay use on vanilla-calling/index.html

Verto

 function connect() {
      client = new Verto({
        host: host,
        login: `${document.getElementById('username').value}@${host}`,
        password: document.getElementById('password').value,
      });

      // client.autoRecoverCalls = false;
      client.remoteElement = 'remoteVideo';
      client.localElement = 'localVideo';

        if (document.getElementById('audio').checked) {
        client.enableMicrophone()
      } else {
        client.disableMicrophone()
      }
      if (document.getElementById('video').checked) {
        client.enableWebcam()
      } else {
        client.disableWebcam()
      }
         .....

With this VERTO code, I could do a call and receive a call, speak, hang up, connect and disconnect, but only show local video and I need to show both Local and Remote video.

When I pick the call the remote video doesn't show image stay this black way, but I can speak and listen to my voice.

It seems that is setting localStream and remoteStream to localVideo.srcObject and remoteVideo.srcObject correctly.

Using Relay with this code

 function connect() {
      client = new Relay({
        project: document.getElementById('project').value,
        token: document.getElementById('token').value
      });

      // client.autoRecoverCalls = false;
      client.remoteElement = 'remoteVideo';
      client.localElement = 'localVideo';

      if (document.getElementById('audio').checked) {
        client.enableMicrophone()
      } else {
        client.disableMicrophone()
      }
      if (document.getElementById('video').checked) {
        client.enableWebcam()
      } else {
        client.disableWebcam()
      }

Could you help me do video local and remote work in Verto, please?

Thank you so much.

Hi @DeividVeloso,

looking SDPs from your last comment it seems that one side is not offering video but only audio.
What type of device are you trying to call?

I'm going to change the title of the issue since this is not a bug with the SDK 👍

I'm using this example and test with Verto and Relay. https://github.com/signalwire/signalwire-node/tree/master/packages/js/examples/vanilla-calling

I'm calling to the browser using SIP call, I called from one browser to another using the same network

I got another clue, in the object this.options when I try to set _setLocalDescription the property remoteSdp has this value when using Verto seems not to include video, but why if I'm using the same code.

I saw that when using Verto it doesn't put video inside SDP on remote, but when using Relay it puts video inside SDP

What can be?

Thanks

Might be your FreeSWITCH configuration while using Verto. That means the caller is not offering video.

Did you set up FS yourself?

Since this is not a bug with the SDK, I'm going to close this ticket, but please feel free to get help on the SignalWire Slack Community: https://signalwire.community/

There are lots of community members and SignalWire support staff that can help out with questions.

Thanks!