Skip to content
Snippets Groups Projects
Commit f6606722 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

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
parent 2f97d4ed
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment