Identify LiveKit room participants by user id, not peer id
This way, their participant id can remain the same when they reconnect.
This commit is contained in:
parent
c2f5381e5a
commit
ad37034960
9 changed files with 55 additions and 42 deletions
|
@ -39,6 +39,7 @@ pub struct LocalParticipant {
|
|||
#[derive(Clone, Debug)]
|
||||
pub struct RemoteParticipant {
|
||||
pub user: Arc<User>,
|
||||
pub peer_id: proto::PeerId,
|
||||
pub projects: Vec<proto::ParticipantProject>,
|
||||
pub location: ParticipantLocation,
|
||||
pub tracks: HashMap<live_kit_client::Sid, Arc<RemoteVideoTrack>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue