Port VideoChannelUtils to MSC3401 #22957
Labels
A-Element-Call
Group calls via Element Call
A-Video-Rooms
Persistent group calls
A-VoIP
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Task
Tasks for the team like planning
Z-Labs
As a preparatory task for integrating Element Call into Element Web, the utilities from the VideoChannelUtils file need to be ported to work with MSC3401, in addition to the proprietary
io.element.video
events that we use today for video rooms. I would suggest putting the MSC3401 versions of these utilities in a file called GroupCallUtils.Since Element Call is already doing some of the work for us, not all of the utilities need to have MSC3401 versions. The only ones that will be used within the react-sdk, are:
getVideoChannel
(should probably be namedgetGroupCall
, and return the activem.call
event)useConnectedMembers
(needs to take them.call
event as an input in order to find the associatedm.call.member
events)removeOurDevice
fixStuckDevices
These should all be accompanied by unit tests.
Since these functions will need to inspect
m.call
andm.call.member
events, but the types for them are sitting in the unmerged robertlong/group-call branch of the js-sdk, it's okay if those type declarations get duplicated in the react-sdk. Once we finish merging the group call branch back into mainline, we can remove those redundancies, but we just need something to build off of for the moment.The text was updated successfully, but these errors were encountered: