Browser-Phone icon indicating copy to clipboard operation
Browser-Phone copied to clipboard

video is not getting display

Open prathibhatvm opened this issue 3 years ago • 13 comments

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

prathibhatvm avatar Jan 05 '22 09:01 prathibhatvm

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

InnovateAsterisk avatar Jan 05 '22 13:01 InnovateAsterisk

console log attached console.log

prathibhacdac avatar Jan 06 '22 04:01 prathibhacdac

sipTrace.txt

prathibhacdac avatar Jan 06 '22 04:01 prathibhacdac

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.

InnovateAsterisk avatar Jan 06 '22 06:01 InnovateAsterisk

console1.log

prathibhacdac avatar Jan 06 '22 06:01 prathibhacdac

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"

InnovateAsterisk avatar Jan 06 '22 12:01 InnovateAsterisk

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

prathibhacdac avatar Jan 07 '22 09:01 prathibhacdac

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

InnovateAsterisk avatar Jan 07 '22 09:01 InnovateAsterisk

Screenshot (15) trickleice report

prathibhacdac avatar Jan 07 '22 09:01 prathibhacdac

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

InnovateAsterisk avatar Jan 07 '22 09:01 InnovateAsterisk

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

prathibhacdac avatar Jan 07 '22 10:01 prathibhacdac

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.

InnovateAsterisk avatar Jan 07 '22 10:01 InnovateAsterisk