1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-23 00:45:29 +02:00

misc: cleanup set_currentRenderingDeviceType

The media is already stored in the call info.
Moreover, no need to hide "share monitor" when we are sharing
the screen, because we may want to switch between a monitor
and a window (or a file) and it should work.

Change-Id: I3db04f1fb11288f4a3288f4430e23704a71bdb3c
GitLab: #587
This commit is contained in:
Sébastien Blin 2022-11-12 09:28:19 -05:00
parent 2f97d4edd9
commit f6606722d6
2 changed files with 0 additions and 11 deletions

View file

@ -347,13 +347,6 @@ AvAdapter::onRendererStarted(const QString& id, const QSize& size)
return;
auto rendererInfo = rendererInfoList.first();
rendererInformationListModel_->addElement(qMakePair(id, rendererInfo));
auto callModel = lrcInstance_->getCurrentCallModel();
auto renderDevice = callModel->getCurrentRenderedDevice(callId);
if (!id.contains("://"))
return;
set_currentRenderingDeviceId(id);
set_currentRenderingDeviceType(renderDevice.type);
}
void

View file

@ -31,10 +31,6 @@
class AvAdapter final : public QmlAdapterBase
{
Q_OBJECT
// TODO: currentRenderingDeviceType is only used in QML to check if
// we're sharing or not, so it should maybe just be a boolean.
QML_RO_PROPERTY(lrc::api::video::DeviceType, currentRenderingDeviceType)
QML_RO_PROPERTY(QString, currentRenderingDeviceId)
QML_PROPERTY(bool, muteCamera)
QML_RO_PROPERTY(QStringList, windowsNames)
QML_RO_PROPERTY(QList<QVariant>, windowsIds)