This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Description
When adding a FileComponent server side to the room with something like
Room.add_component(client, room_id, %Jellyfish.Component.File{ file_path: path })
As soon as the Jellyfish.Notification.ComponentTrackAdded is emitted and the track is sent to the client, the react client crashes due to this access in onTrackEncodingChanged
export const onTrackEncodingChanged = (prevState, peerId, trackId, encoding) => {
const peer = prevState.remote[peerId];
const peerTrack = { ...peer.tracks[trackId], encoding };
... ^^^^^^
};
logs:
Uncaught TypeError: Cannot read properties of undefined (reading 'tracks')
at onTrackEncodingChanged (stateMappers.js:147:33)
at onEncodingChanged (stateMappers.js:322:12)
The above error occurred in the <JellyfishContextProvider>