comparison libervia/web/server/restricted_bridge.py @ 1549:e47c24204449

browser (calls): update call to handle search, control buttons, and better UI/UX: - adapt to backend changes - UI and WebRTC parts are not separated - users can now be searched - add mute/fullscreen buttons - ring - cancellable dialog when a call is received - status of the call - animations - various UI/UX improvments rel 423
author Goffi <goffi@goffi.org>
date Wed, 09 Aug 2023 00:22:18 +0200
parents 7f3f5ae7d65a
children c7d15ded4cbb
comparison
equal deleted inserted replaced
1548:66aa6e140ebb 1549:e47c24204449
49 49
50 async def call_start(self, entity: str, call_data_s: str, profile: str) -> None: 50 async def call_start(self, entity: str, call_data_s: str, profile: str) -> None:
51 self.no_service_profile(profile) 51 self.no_service_profile(profile)
52 return await self.host.bridge_call( 52 return await self.host.bridge_call(
53 "call_start", entity, call_data_s, profile 53 "call_start", entity, call_data_s, profile
54 )
55
56 async def call_answer_sdp(
57 self, session_id: str, answer_sdp: str, profile: str
58 ) -> None:
59 self.no_service_profile(profile)
60 return await self.host.bridge_call(
61 "call_answer_sdp", session_id, answer_sdp, profile
62 )
63
64 async def call_info(
65 self, session_id: str, info_type: str, extra_s: str, profile: str
66 ) -> None:
67 self.no_service_profile(profile)
68 return await self.host.bridge_call(
69 "call_info", session_id, info_type, extra_s, profile
54 ) 70 )
55 71
56 async def call_end(self, session_id: str, call_data: str, profile: str) -> None: 72 async def call_end(self, session_id: str, call_data: str, profile: str) -> None:
57 self.no_service_profile(profile) 73 self.no_service_profile(profile)
58 return await self.host.bridge_call( 74 return await self.host.bridge_call(
154 ): 170 ):
155 self.no_service_profile(profile) 171 self.no_service_profile(profile)
156 return await self.host.bridge_call( 172 return await self.host.bridge_call(
157 "interest_retract", service_jid, item_id, profile) 173 "interest_retract", service_jid, item_id, profile)
158 174
175 async def jingle_terminate(
176 self, session_id: str, reason: str, reason_txt: str, profile: str
177 ) -> None:
178 self.no_service_profile(profile)
179 return await self.host.bridge_call(
180 "jingle_terminate", session_id, reason, reason_txt, profile
181 )
182
159 async def ps_invite( 183 async def ps_invite(
160 self, invitee_jid_s, service_s, node, item_id, name, extra_s, profile 184 self, invitee_jid_s, service_s, node, item_id, name, extra_s, profile
161 ): 185 ):
162 self.no_service_profile(profile) 186 self.no_service_profile(profile)
163 return await self.host.bridge_call( 187 return await self.host.bridge_call(