diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-02 23:08:49 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-07 15:19:10 +0300 |
commit | 7ea382176c4fcf95135557b80a3c2f9632942834 (patch) | |
tree | ee2073ac4b0aee27ffb4b50b18d4d31142d162f2 /lib/Signaling | |
parent | d9331d2d21dcc7fa07abd505c876dcb886d06364 (diff) |
Add endpoint to update the call flags
The call flags are updated when joining and leaving a call. However,
during a call the audio and video devices can be disabled without
needing a reconnection, so an endpoint to just update the call flags is
also needed.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/Signaling')
-rw-r--r-- | lib/Signaling/Listener.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Signaling/Listener.php b/lib/Signaling/Listener.php index 074563ed1..9ebec18bd 100644 --- a/lib/Signaling/Listener.php +++ b/lib/Signaling/Listener.php @@ -65,6 +65,7 @@ class Listener { $dispatcher->addListener(Room::EVENT_AFTER_ROOM_CONNECT, $listener); $dispatcher->addListener(Room::EVENT_AFTER_GUEST_CONNECT, $listener); $dispatcher->addListener(Room::EVENT_AFTER_SESSION_JOIN_CALL, $listener); + $dispatcher->addListener(Room::EVENT_AFTER_SESSION_UPDATE_CALL_FLAGS, $listener); $dispatcher->addListener(Room::EVENT_AFTER_SESSION_LEAVE_CALL, $listener); $dispatcher->addListener(GuestManager::EVENT_AFTER_NAME_UPDATE, $listener); @@ -241,6 +242,7 @@ class Listener { } }; $dispatcher->addListener(Room::EVENT_AFTER_SESSION_JOIN_CALL, $listener); + $dispatcher->addListener(Room::EVENT_AFTER_SESSION_UPDATE_CALL_FLAGS, $listener); $dispatcher->addListener(Room::EVENT_AFTER_SESSION_LEAVE_CALL, $listener); $dispatcher->addListener(Room::EVENT_AFTER_GUESTS_CLEAN, static function (RoomEvent $event) { |