Hi Mir,
Well, the answer() method doesn’t inherently do much. You need to attach the audio and video tracks to <audio> and <video> DOM elements to get them to play.
Perhaps something like this:
<audio id=“my_audio”></audio>
<video id=“my_video”></video>
session.answer({
mediaConstraints: { video: true, audio: true }
});
session.connection.addEventListener(’track’, t => {
let elem = undefined;
if(t.track.kind === ‘audio’)
elem = document.getElementById(‘#my_audio’);
else if(t.track.kind === ‘video’)
elem = document.getElementById(‘#my_video’);
if(elem) {
elem.srcObject = t.streams[0];
elem.play();
}
});
— Alex
> On Apr 15, 2022, at 7:29 AM, Mir Garey <
gare...@gmail.com> wrote:
>
> Hi everyone! I'm using jssip 3.9.0 and freeswitch 1.10.7.
> Trying to make an incoming video call to a jssip client, but on Windows 11 the answer() method doesn't do anything at all. At the same time it does work fine on Mac, Ubuntu or older versions of Windows. Has anyone had the same issue?
>
> --
> You received this message because you are subscribed to the Google Groups "JsSIP" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
jssip+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/jssip/6ee5164b-2c28-46de-9cb3-2f5d3dfee6d8n%40googlegroups.com.
--
Alex Balashov | Principal | Evariste Systems LLC
Tel:
+1-706-510-6800 /
+1-800-250-5920 (toll-free)
Web:
http://www.evaristesys.com/,
http://www.csrpswitch.com/