jitsi / jitsi-meet

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
https://jitsi.org/meet
Apache License 2.0
23.24k stars 6.75k forks source link

Third person joining causes loss of audio for all participants #15122

Closed BorhanZuaiter closed 1 week ago

BorhanZuaiter commented 2 months ago

What happened?

Steps to reproduce: Start a meeting Join meeting with 3 or more participants Already joined participants Video & Audio stops working, Expected behavior: Need to see and hear the Audio & Video of all the attendees.

Actual behavior: Only my Audio & Video is working, rest of attendees Audio & Video stops working when 3rd participant joins the meeting.

when the meeting is using p2p it works perfectly, when it switches to Video bridge the problem starts. so probably the error is happening because of the video bridge.

Platform

Browser / app / sdk version

latest version

Relevant log output

2024-09-15T09:57:17.858Z [conference.js] <si.<anonymous>>:  My role changed, new role: none
ChatRoom.js:642 2024-09-15T09:57:17.862Z [modules/xmpp/ChatRoom.js] <Es.onPresence>:  (TIME) MUC joined:     4154.099999964237
ChatRoom.js:1154 2024-09-15T09:57:17.886Z [modules/xmpp/ChatRoom.js] <Es.onMessage>:  Subject is changed to 
strophe.jingle.js:166 2024-09-15T09:57:17.887Z [modules/xmpp/strophe.jingle.js] <_a.onJingle>:  Found a JSON-encoded element in session-initiate, translating to standard Jingle.
strophe.jingle.js:187 2024-09-15T09:57:17.887Z [modules/xmpp/strophe.jingle.js] <_a.onJingle>:  (TIME) received session-initiate:    4178.699999988079
TraceablePeerConnection.js:266 2024-09-15T09:57:17.891Z [modules/RTC/TraceablePeerConnection.js] <new rl>:  Using RTCRtpTransceiver#setCodecPreferences for codec selection
TraceablePeerConnection.js:417 2024-09-15T09:57:17.891Z [modules/RTC/TraceablePeerConnection.js] <new rl>:  Create new TPC[id=1,type=JVB]
JitsiConference.js:2298 2024-09-15T09:57:17.891Z [JitsiConference.js] <Wh._setBridgeChannel>:  SCTP: offered=true, prefered=true
JingleSessionPC.js:1366 2024-09-15T09:57:17.942Z [modules/xmpp/JingleSessionPC.js] <ga.sendSessionAccept>:  JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] Sending session-accept
JingleSessionPC.js:518 2024-09-15T09:57:17.943Z [modules/xmpp/JingleSessionPC.js] <peerconnection.oniceconnectionstatechange>:  (TIME) ICE checking JVB:     4235.199999988079
JingleSessionPC.js:518 2024-09-15T09:57:17.979Z [modules/xmpp/JingleSessionPC.js] <peerconnection.oniceconnectionstatechange>:  (TIME) ICE connected JVB:    4271.199999988079
BridgeChannel.js:275 2024-09-15T09:57:18.159Z [modules/RTC/BridgeChannel.js] <e.onopen>:  datachannel channel opened
JitsiConferenceEventManager.js:516 2024-09-15T09:57:18.159Z [JitsiConferenceEventManager.js] <si.<anonymous>>:  (TIME) data.channel.opened:  4450.899999976158
BridgeChannel.js:245 2024-09-15T09:57:18.162Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
BridgeChannel.js:334 2024-09-15T09:57:18.165Z [modules/RTC/BridgeChannel.js] <e.onmessage>:  New forwarded sources: 63db4c89-v0
BridgeChannel.js:353 2024-09-15T09:57:18.165Z [modules/RTC/BridgeChannel.js] <e.onmessage>:  Received VideoSourcesMap: [{"source":"63db4c89-v0","owner":"63db4c89","ssrc":2757008802,"rtx":2273533224,"videoType":"CAMERA"}]
BridgeChannel.js:358 2024-09-15T09:57:18.167Z [modules/RTC/BridgeChannel.js] <e.onmessage>:  Received AudioSourcesMap: [{"source":"63db4c89-a0","owner":"63db4c89","ssrc":1793477665}]
BridgeChannel.js:316 2024-09-15T09:57:18.167Z [modules/RTC/BridgeChannel.js] <e.onmessage>:  Endpoint connection status changed: 7535bcd6 active=false
JingleSessionPC.js:1185 2024-09-15T09:57:18.197Z [modules/xmpp/JingleSessionPC.js] <ga.setVideoCodecs>:  JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] setVideoCodecs: codecList=vp9,vp8,h264, screenshareCodec=undefined
BridgeChannel.js:245 2024-09-15T09:57:18.198Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
JingleSessionPC.js:1930 2024-09-15T09:57:18.201Z [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] Processing addRemoteStream
TraceablePeerConnection.js:892 2024-09-15T09:57:18.211Z [modules/RTC/TraceablePeerConnection.js] <rl._remoteTrackAdded>:  TPC[id=1,type=JVB] Received track event for remote stream[id=remote-video-1,type=video]
TraceablePeerConnection.js:997 2024-09-15T09:57:18.211Z [modules/RTC/TraceablePeerConnection.js] <rl._createRemoteTrack>:  TPC[id=1,type=JVB] creating remote track[endpoint=63db4c89,ssrc=2757008802,type=video,sourceName=63db4c89-v0]
BridgeChannel.js:245 2024-09-15T09:57:18.212Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
TrackStreamingStatus.ts:239 2024-09-15T09:57:18.218Z [modules/connectivity/TrackStreamingStatus.ts] <new Jc>:  RtcMuteTimeout set to: 10000
BridgeChannel.js:245 2024-09-15T09:57:18.219Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
BridgeChannel.js:245 2024-09-15T09:57:18.225Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
JingleSessionPC.js:1943 2024-09-15T09:57:18.239Z [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] addRemoteStream - OK
JingleSessionPC.js:1930 2024-09-15T09:57:18.241Z [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] Processing addRemoteStream
TraceablePeerConnection.js:892 2024-09-15T09:57:18.251Z [modules/RTC/TraceablePeerConnection.js] <rl._remoteTrackAdded>:  TPC[id=1,type=JVB] Received track event for remote stream[id=remote-audio-1,type=audio]
TraceablePeerConnection.js:997 2024-09-15T09:57:18.251Z [modules/RTC/TraceablePeerConnection.js] <rl._createRemoteTrack>:  TPC[id=1,type=JVB] creating remote track[endpoint=63db4c89,ssrc=1793477665,type=audio,sourceName=63db4c89-a0]
BridgeChannel.js:245 2024-09-15T09:57:18.252Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
JitsiRemoteTrack.js:323 2024-09-15T09:57:18.272Z [modules/RTC/JitsiRemoteTrack.js] <Yc._playCallback>:  (TIME) Render audio:     4564.099999964237
JitsiRemoteTrack.js:342 2024-09-15T09:57:18.272Z [modules/RTC/JitsiRemoteTrack.js] <Yc._playCallback>:  (TIME) TTFM audio:   4503.8999999165535
JingleSessionPC.js:1943 2024-09-15T09:57:18.275Z [modules/xmpp/JingleSessionPC.js] JingleSessionPC[session=JVB,initiator=false,sid=ea28ci8e2ckim] addRemoteStream - OK
BridgeChannel.js:245 2024-09-15T09:57:18.657Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}
JitsiRemoteTrack.js:323 2024-09-15T09:57:18.722Z [modules/RTC/JitsiRemoteTrack.js] <Yc._playCallback>:  (TIME) Render video:     5014.599999964237
JitsiRemoteTrack.js:342 2024-09-15T09:57:18.723Z [modules/RTC/JitsiRemoteTrack.js] <Yc._playCallback>:  (TIME) TTFM video:   4954.3999999165535
BridgeChannel.js:245 2024-09-15T09:57:18.723Z [modules/RTC/BridgeChannel.js] <La.sendReceiverVideoConstraintsMessage>:  Sending ReceiverVideoConstraints with {"constraints":{"63db4c89-v0":{"maxHeight":360}},"defaultConstraints":{"maxHeight":0},"lastN":-1,"onStageSources":[],"selectedSources":[]}

Reproducibility

More details?

When participants are on the same network, the meeting works well for 3 or more users. However, when someone joins from outside the network, they can't hear or see the other participants, even though those within the network can see and hear each other without any issues.

damencho commented 2 months ago

You are missing the port forwarding from your public ip address to jvb on udp port 10000. Or your jvb is reporting a wrong public address.

BorhanZuaiter commented 2 months ago

How can I fix that? Untitled

damencho commented 2 months ago

Do you have a router fronting this machine? Is this machine with the public address?

damencho commented 1 week ago

Please, when you have questions or problems use the community forum before opening new issues, thank you.