InnovateAsterisk / Browser-Phone

A fully featured browser based WebRTC SIP phone for Asterisk
https://www.innovateasterisk.com
GNU Affero General Public License v3.0
489 stars 240 forks source link

video is not getting display #187

Open prathibhatvm opened 2 years ago

prathibhatvm commented 2 years ago

In video call, only the video of the creator is displayed. The joiner's video is not appearing.

InnovateAsterisk commented 2 years ago

You'll have to give me a bit more to go with here... My tests show video working fine.

Can you send the Browser console Log and SIP trace

prathibhacdac commented 2 years ago

console log attached console.log

prathibhacdac commented 2 years ago

sipTrace.txt

InnovateAsterisk commented 2 years ago

Thu Jan 06 2022 09:28:52 GMT+0530 (India Standard Time) | sip.ua | · userAgentString: "Raspberry Phone (SipJS - 0.11.6)"

This is a log from an older version of the browser phone. This is known to have issues with video calls especially in conference (SFU) mode.

prathibhacdac commented 2 years ago

console1.log

InnovateAsterisk commented 2 years ago

My log appears almost the same as yours except that I get the following:

Playing Video Stream MID: 1 Display Video - live MID: 1 channel: unknown src width: 477 src height 270

What's interesting is that your log show:

phone.js:2466 Adding Remote Video Track - live MID: 1

and also:

Playing Video Stream MID: 1

But this was after the BYE in both cases.

This means that the streams are coming through to the browser because of the Playing Video, but because they are after the bye, it doesn't display them Display Video.

It's almost as if it's just taking a very long time. Is it possible that the video has just taken too long to stream? in some of my tests the video stream has taken a very long time to appear. I did notice in the previous log, the ICE collection timed out. You need to fix that - ICE is important for webrtc. Make sure you can reach "stun:stun.l.google.com:19302"

prathibhacdac commented 2 years ago

How to check stun:stun.l.google.com:19302 is reachable or not?

InnovateAsterisk commented 2 years ago

https://github.com/InnovateAsterisk/Browser-Phone/issues/182#issuecomment-1002936027

prathibhacdac commented 2 years ago

Screenshot (15) trickleice report

InnovateAsterisk commented 2 years ago

Looks good. You should not have any issues with ICE from client side.

Remember tho, ICE must be enabled on the server too. because with Asterisk Server is B-side always, even when calling another webrtc extension. (it cannot optimise out, as SDES is already established.)

https://github.com/asterisk/asterisk/blob/0d62735f99b27a7104bbdb04bb5630fec395f40f/configs/samples/rtp.conf.sample#L61

and also here if NAT: https://github.com/asterisk/asterisk/blob/0d62735f99b27a7104bbdb04bb5630fec395f40f/configs/samples/rtp.conf.sample#L131

prathibhacdac commented 2 years ago

Now I'm able to see both the creator and the joiner's video. Issue resolved.

InnovateAsterisk commented 2 years ago

Excellent!

BTW, If you dial into a confbridge conference https://github.com/asterisk/asterisk/blob/master/configs/samples/confbridge.conf.sample and set video_mode = sfu https://github.com/asterisk/asterisk/blob/0d62735f99b27a7104bbdb04bb5630fec395f40f/configs/samples/confbridge.conf.sample#L222 You can have a multi party video conference.

prathibhacdac commented 3 months ago

How to do video conference using Browser Phone?