Membrane js 0.2.3 + safari 16 -> tranceiver is null on event

Hi again! I have a bug for users in Safari 16, in the onTrack handler the event object passed in to the handler has no tranceiver member, so event.transceiver.mid returns undefined which is passed to midToTrackId which then throws an error in checkIfTrackBelongToPeer (trackId is undefined and startsWith explodes). In debugging a bit I can see that the event object DOES have a Receiver object but no tranceiver. Is this some difference in Safari WebRTC implementation? Do you have any suggestions on a fix?

24 responses