Really strange behavior on track.attach() on Safari iOS

Hi, i really need help because i have to fix that and really cant find the problem.

So the way my app works is that:
I am creating conference, joining etc.
I add a listener for the USER_JOIN event. There i check if the participant is with particular displayName, then i get his tracks from the conference object and i attached them on video/audio elements.
Everything works great in any case on Chrome (mobile,desktop) and Firefox desktop.
But on Safari everything is super strange:
IF i am first in the conference and then the user who i am waiting for JOINS the conference, i am getting his tracks, attach them on HTMLMedialElement but they are not played. I attached listeners on for example the video tag - (suspend, emptied), to check for errors and they get triggered.

But the next strange thing is that if the user i am waiting for is in the conference BEFORE me, then i log in, USER_JOIN listener gets executed again, i get the tracks of the user i am looking for, then attach them and they start to play normally.

I also tried with the original HTMLMediaElement controls. When i attach the track the video is black, when i click the play button, its changes to pause button but the video is again black.

Other problem with iphone safari also occured. When i try to add my tracks to the conference with
conferenceObj.addTrack() method I get an error in lib-jitsi-meet method.

That error shows up, but my tracks get actually added and they are working.
If i use the inner method - replaceTrack(oldTrack, newTrack) and handle the error it wont show up, my tracks will be added again and thats it.
But the problem is if i try to get my localTracks from the conference with,
conferenceObj.getLocalTracks(), it returns nothing, but actually they are in the participantObject under the _tracks property.
These things happen only of safari…
It gets more complicated because i dont have MAC and cant debug the app on iphone, i work with alerts only…

Seems like when the user with safari logs first, after that the tracks added in the conference from other participant are some kind of “broken”.
Because for example if I login with “User1” with safari, then “User 2” logs in and I add his tracks, I get these added tracks on “User1” but they don’t play at all.
Then if I change the camera device on “User2” (I am creating new local track with the new device and add it on the conference), then that new added track is NOT “broken” for “User1” and it gets played.

I checked the “jitsi-meet” source code but I don’t find anything special there when attaching track to an element. I also tried same way like in “jitsi-meet” but still same problem…

So I got a MacBook and here the problem is the same.
If “safariUser” is in the conference BEFORE the “mainUser” who will have a video and audio, on the “safariUser” side the “mainUser” tracks are “unplayable”. On the MacBook I checked, and the tracks of the “mainUser” are in the conference, the media streams are active and tracks are not muted, but they are not playing…

Here are the browser logs from the MAC safari browser:

[Log] 2021-02-20T14:50:48.136Z – “[modules/xmpp/ChatRoom.js]” – “entered” – “imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – {affiliation: “none”, role: “participant”, jid: “c494c4ff-3390-4001-9ab1-8fde432571f0@dev.digitalcon.center/THQSyBuX”, …} (lib-jitsi-meet.min.js, line 10)
{affiliation: “none”, role: “participant”, jid: “c494c4ff-3390-4001-9ab1-8fde432571f0@dev.digitalcon.center/THQSyBuX”, isFocus: false, isHiddenDomain: false, …}Object
[Info] 2021-02-20T14:50:48.281Z – “[JitsiConference.js]” – “Auto P2P disabled” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.369Z – “[modules/xmpp/ChatRoom.js]” – “Jicofo supports restart by terminate: false” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.371Z – “[modules/xmpp/ChatRoom.js]” – “Jicofo supports restart by terminate: false” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.372Z – “[modules/xmpp/ChatRoom.js]” – “Jicofo supports restart by terminate: false” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.372Z – “[modules/version/ComponentsVersions.js]” – “Got videobridge version: 2.1.351-g0bfaac1c” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.374Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle session-initiate from imported-slot-4@conference.dev.digitalcon.center/focus” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.375Z – “[modules/xmpp/strophe.jingle.js]” – “(TIME) received session-initiate:\t” – 64254.00000000001 (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.375Z – “[modules/xmpp/strophe.jingle.js]” – “Marking session from imported-slot-4@conference.dev.digitalcon.center/focus as not P2P” (lib-jitsi-meet.min.js, line 10)
[Log] SdpSimulcast: using 3 layers (lib-jitsi-meet.min.js, line 25)
[Info] 2021-02-20T14:50:48.390Z – “[modules/RTC/TraceablePeerConnection.js]” – “Create new TPC[1,p2p:false]” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.394Z – “[JitsiConference.js]” – “Starting CallStats for JVB connection…” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.396Z – “[modules/statistics/RTPStatsCollector.js]” – “Using RTCRtpSynchronizationSource for remote audio levels” (lib-jitsi-meet.min.js, line 10)
[Info] Halt: There are no SSRC groups in the remote description. (lib-jitsi-meet.min.js, line 25)
[Info] 2021-02-20T14:50:48.431Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] ignored remote ‘stream added’ event for non-user streamid: mixedmslabel” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.433Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] ignored remote ‘stream added’ event for non-user streamid: mixedmslabel” (lib-jitsi-meet.min.js, line 10)
[Warning] The description does not look like plan-b (lib-jitsi-meet.min.js, line 17)
[Info] 2021-02-20T14:50:48.470Z – “[modules/xmpp/JingleSessionPC.js]” – “Sending session-accept” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.471Z – “[modules/xmpp/JingleSessionPC.js]” – “(TIME) ICE checking P2P? false:\t” – 64351 (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.483Z – “[modules/xmpp/SDPUtil.js]” – “not translating “ufrag” = “fZzi”” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.483Z – “[modules/xmpp/SDPUtil.js]” – "not translating “network-cost” = “999"” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.504Z – “[modules/xmpp/JingleSessionPC.js]” – “sendIceCandidates” – [RTCIceCandidate] (1) (lib-jitsi-meet.min.js, line 10)
[RTCIceCandidate]Array (1)
[Log] 2021-02-20T14:50:48.509Z – “[modules/xmpp/SDPUtil.js]” – “not translating “ufrag” = “fZzi”” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.509Z – “[modules/xmpp/SDPUtil.js]” – "not translating “network-cost” = “999"” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.524Z – “[modules/xmpp/JingleSessionPC.js]” – “sendIceCandidate: last candidate.” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.675Z – “[modules/xmpp/JingleSessionPC.js]” – “JingleSessionPC[p2p=false,initiator=false,sid=5mvj3l3ihljdq] setReceiverVideoConstraint - max frame height: 1080” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.808Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle session-initiate from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.809Z – “[modules/xmpp/strophe.jingle.js]” – “(TIME) received session-initiate:\t” – 64688 (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.809Z – “[modules/xmpp/strophe.jingle.js]” – “Marking session from imported-slot-4@conference.dev.digitalcon.center/c494c4ff as P2P” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.811Z – “[modules/xmpp/JingleSessionPC.js]” – “Sending session-terminate” – (lib-jitsi-meet.min.js, line 10)


[Info] 2021-02-20T14:50:48.812Z – “[modules/xmpp/JingleSessionPC.js]” – “Session terminated JingleSessionPC[p2p=true,initiator=false,sid=7a3bca7f188a]” – undefined – undefined (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.812Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle transport-info from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Warning] 2021-02-20T14:50:48.813Z – “[modules/xmpp/strophe.jingle.js]” – “invalid session id” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.814Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle transport-info from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Warning] 2021-02-20T14:50:48.815Z – “[modules/xmpp/strophe.jingle.js]” – “invalid session id” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.815Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle transport-info from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Warning] 2021-02-20T14:50:48.816Z – “[modules/xmpp/strophe.jingle.js]” – “invalid session id” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.817Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle transport-info from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Warning] 2021-02-20T14:50:48.817Z – “[modules/xmpp/strophe.jingle.js]” – “invalid session id” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.850Z – “[modules/xmpp/JingleSessionPC.js]” – “(TIME) ICE connected P2P? false:\t” – 64729 (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.851Z – “[modules/RTC/BridgeChannel.js]” – “datachannel channel opened” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.851Z – “[JitsiConferenceEventManager.js]” – “(TIME) data.channel.opened:\t” – 64730.00000000001 (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.851Z – “[modules/RTC/BridgeChannel.js]” – “Sending pinned endpoint: null.” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.852Z – “[modules/RTC/BridgeChannel.js]” – “Sending selected endpoints: .” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.852Z – “[modules/RTC/BridgeChannel.js]” – “Sending ReceiverVideoConstraint with maxFrameHeight=1080px” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:48.948Z – “[modules/RTC/BridgeChannel.js]” – “New dominant speaker: ff015387.” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.973Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle transport-info from imported-slot-4@conference.dev.digitalcon.center/c494c4ff” – (lib-jitsi-meet.min.js, line 10)


[Warning] 2021-02-20T14:50:48.973Z – “[modules/xmpp/strophe.jingle.js]” – “invalid session id” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.974Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle source-add from imported-slot-4@conference.dev.digitalcon.center/focus” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:48.981Z – “[modules/xmpp/JingleSessionPC.js]” – “Processing addRemoteStream” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:48.981Z – “[modules/xmpp/JingleSessionPC.js]” – "ICE connection state: " – “connected” (lib-jitsi-meet.min.js, line 10)
[Info] Halt: There are no SSRC groups in the remote description. (lib-jitsi-meet.min.js, line 25)
[Warning] The description does not look like plan-b (lib-jitsi-meet.min.js, line 17)
[Log] 2021-02-20T14:50:49.015Z – “[modules/xmpp/JingleSessionPC.js]” – "addRemoteStream - OK, SDPs: " (2) (lib-jitsi-meet.min.js, line 10)
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 2 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 2 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 3 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 3 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
[Log] 2021-02-20T14:50:49.018Z – “[modules/xmpp/JingleSessionPC.js]” – “removal not necessary” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:49.018Z – “[modules/xmpp/JingleSessionPC.js]” – “addition not necessary” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:49.788Z – “[modules/RTC/BridgeChannel.js]” – “New dominant speaker: c494c4ff.” (lib-jitsi-meet.min.js, line 10)
[Info] 2021-02-20T14:50:49.916Z – “[modules/RTC/BridgeChannel.js]” – “New forwarded endpoints: c494c4ff” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.041Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle source-add from imported-slot-4@conference.dev.digitalcon.center/focus” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:50.042Z – “[modules/xmpp/strophe.jingle.js]” – “on jingle source-add from imported-slot-4@conference.dev.digitalcon.center/focus” – (lib-jitsi-meet.min.js, line 10)


[Log] 2021-02-20T14:50:50.047Z – “[modules/xmpp/JingleSessionPC.js]” – “Processing addRemoteStream” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.047Z – “[modules/xmpp/JingleSessionPC.js]” – "ICE connection state: " – “connected” (lib-jitsi-meet.min.js, line 10)
[Info] Halt: There are no SSRC groups in the remote description. (lib-jitsi-meet.min.js, line 25)
[Info] 2021-02-20T14:50:50.061Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] remote track added:” – “686f27c3-b6cd-4d6c-8d92-72a7e85bb039-2” – “audio” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.062Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] associated ssrc” – “c494c4ff” – 4161711358 (lib-jitsi-meet.min.js, line 10)
[Warning] The description does not look like plan-b (lib-jitsi-meet.min.js, line 17)
[Log] 2021-02-20T14:50:50.123Z – “[modules/xmpp/JingleSessionPC.js]” – "addRemoteStream - OK, SDPs: " (2) (lib-jitsi-meet.min.js, line 10)
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 3 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 3 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 4 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 4 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
[Log] 2021-02-20T14:50:50.125Z – “[modules/xmpp/JingleSessionPC.js]” – “removal not necessary” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.126Z – “[modules/xmpp/JingleSessionPC.js]” – “addition not necessary” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.159Z – “[modules/xmpp/JingleSessionPC.js]” – “Processing addRemoteStream” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.160Z – “[modules/xmpp/JingleSessionPC.js]” – "ICE connection state: " – “connected” (lib-jitsi-meet.min.js, line 10)
[Info] Halt: There are no SSRC groups in the remote description. (lib-jitsi-meet.min.js, line 25)
[Info] Imploding SIM group: 694585035 1093503035 3829173844 (lib-jitsi-meet.min.js, line 25)
[Info] 2021-02-20T14:50:50.182Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] remote track added:” – “21555a6d-6d51-4c71-b06f-bccc02faed02-2” – “video” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.183Z – “[modules/RTC/TraceablePeerConnection.js]” – “TPC[1,p2p:false] associated ssrc” – “c494c4ff” – 694585035 (lib-jitsi-meet.min.js, line 10)
[Log] [y, y] (2) (main.chunk.js, line 33445)
[Log] 2021-02-20T14:50:50.241Z – “[modules/RTC/BridgeChannel.js]” – “Sending selected endpoints: c494c4ff.” (lib-jitsi-meet.min.js, line 10)
[Warning] The description does not look like plan-b (lib-jitsi-meet.min.js, line 17)
[Log] (TIME) Render audio: – 66204.00000000001 (lib-jitsi-meet.min.js, line 17)
[Log] (TIME) TTFM audio: – 43008.000000000015 (lib-jitsi-meet.min.js, line 17)
[Log] 2021-02-20T14:50:50.329Z – “[modules/xmpp/JingleSessionPC.js]” – "addRemoteStream - OK, SDPs: " (2) (lib-jitsi-meet.min.js, line 10)
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 4 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 4 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
s {media: [“m=audio 52119 RTP/SAVPF 111 103 126\r↵c=IN IP4 192.…ork-cost 999\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=video 9 RTP/SAVPF 100 107 96 99\r↵c=IN IP4 0.0.0.…:7E:40:05:5F\r↵a=ice-options:trickle\r↵a=rtcp-mux\r↵”, “m=application 9 DTLS/SCTP 5000\r↵c=IN IP4 0.0.0.0\r↵…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”], raw: “v=0\r↵o=- 4464434455427044083 5 IN IP4 127.0.0.1\r↵s…trickle\r↵a=sctpmap:5000 webrtc-datachannel 1024\r↵”, session: “v=0\r↵o=- 4464434455427044083 5 IN IP4 127.0.0.1\r↵s…emantic: WMS *\r↵a=group:BUNDLE audio video data\r↵”, failICE: false, removeTcpCandidates: false, …}
[Log] 2021-02-20T14:50:50.330Z – “[modules/xmpp/JingleSessionPC.js]” – “removal not necessary” (lib-jitsi-meet.min.js, line 10)
[Log] 2021-02-20T14:50:50.330Z – “[modules/xmpp/JingleSessionPC.js]” – “addition not necessary” (lib-jitsi-meet.min.js, line 10)
[Warning] 2021-02-20T14:51:58.401Z – “[modules/statistics/AudioOutputProblemDetector.js]” – “A potential problem is detected with the audio output for participant c494c4ff, local audio levels: [null,null], remote audio levels…” (lib-jitsi-meet.min.js, line 10)

Here is an image of the track returned by the CONFERENCE_TRACK_ADDED listener:

The other thing is that if I try to execute .play() method on the video tag,
that returns Promise and its stays on Pending forever…

Don’t know, but is it possible the problem to be from that warning in the console:
“The description does not look like plan-b” because it shows up couple times.

Now I tried to add some event listeners on the video tag to see what is getting triggered. I added listeners on the ‘suspend’, ‘canplaythrought’, ‘aborted’, ‘stalled’, ‘waiting’, ‘playing’ events.
And seems like on safari ABSOLUTELY every time first it triggers the ‘suspend’ event.
As I said sometimes there are no problems when I receive the track, it starts to play normally, on that situation the triggered events are: ‘suspend’ → ‘canplaythrought’ → ‘playing’.
But on the situation where the video doesn’t play automatically it is triggering only ‘suspend’ and for example if I try to play the video with video controls or .play() method it triggers ‘waiting’ event.

Can somebody helps please ?

Well seems like the problem with Safari was one setTimeout before adding the local tracks in the conference.

So if someone else is having problems with safari sometimes playing remote tracks sometimes dont:

DO NOT add local tracks in the conference in setTimeout function