# desktop/mobile frontend for Libervia XMPP client # Copyright (C) 2016-2023 Jérôme Poisson (goffi@goffi.org) # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . : remote_video: remote_video local_video: local_video orientation: 'vertical' FloatLayout: id: float_layout pos_hint: {'x': 0, 'y': 0} size_hint: 1, 1 VideoStreamWidget: id: remote_video size: float_layout.size pos: float_layout.pos fit_mode: "contain" VideoStreamWidget: id: local_video size_hint: 0.25, 0.25 pos_hint: {'right': 1, 'bottom': 0} fit_mode: "contain" canvas.before: Color: rgba: (0, 0, 0, 0) Rectangle: pos: self.pos size: self.size : size_hint: None, 1 text: "Hang Up" if self.parent_widget.in_call else "Call" background_color: (1, 0, 0, 1) if self.parent_widget.in_call else (0, 1, 0, 1)