mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Add findParticipantDevice method on Conference.
This commit is contained in:
parent
a12a229720
commit
35634f442a
2 changed files with 15 additions and 0 deletions
|
|
@ -141,6 +141,19 @@ shared_ptr<Participant> Conference::findParticipant (const shared_ptr<const Call
|
|||
return nullptr;
|
||||
}
|
||||
|
||||
shared_ptr<ParticipantDevice> Conference::findParticipantDevice (const shared_ptr<const CallSession> &session) const {
|
||||
L_D();
|
||||
|
||||
for (const auto &participant : d->participants) {
|
||||
for (const auto &device : participant->getPrivate()->getDevices()) {
|
||||
if (device->getSession() == session)
|
||||
return device;
|
||||
}
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
bool Conference::isMe (const IdentityAddress &addr) const {
|
||||
L_D();
|
||||
IdentityAddress cleanedAddr(addr);
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ class CallSession;
|
|||
class CallSessionListener;
|
||||
class CallSessionPrivate;
|
||||
class ConferencePrivate;
|
||||
class ParticipantDevice;
|
||||
|
||||
class LINPHONE_PUBLIC Conference :
|
||||
public ConferenceInterface,
|
||||
|
|
@ -47,6 +48,7 @@ public:
|
|||
std::shared_ptr<Participant> getActiveParticipant () const;
|
||||
|
||||
std::shared_ptr<Participant> findParticipant (const std::shared_ptr<const CallSession> &session) const;
|
||||
std::shared_ptr<ParticipantDevice> findParticipantDevice (const std::shared_ptr<const CallSession> &session) const;
|
||||
|
||||
/* ConferenceInterface */
|
||||
void addParticipant (const IdentityAddress &addr, const CallSessionParams *params, bool hasMedia) override;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue