mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Fix device discovery under GStreamer 1.16
This commit is contained in:
parent
2bd8a386e2
commit
cf8a47503f
4 changed files with 4 additions and 0 deletions
|
@ -46,6 +46,7 @@ Rectangle {
|
||||||
CallManager.hangUp();
|
CallManager.hangUp();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
CallManager.refreshDevices();
|
||||||
var dialog = placeCallDialog.createObject(timelineRoot);
|
var dialog = placeCallDialog.createObject(timelineRoot);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,7 @@ Rectangle {
|
||||||
ToolTip.visible: hovered
|
ToolTip.visible: hovered
|
||||||
ToolTip.text: qsTr("Devices")
|
ToolTip.text: qsTr("Devices")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
CallManager.refreshDevices();
|
||||||
var dialog = devicesDialog.createObject(timelineRoot);
|
var dialog = devicesDialog.createObject(timelineRoot);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,7 @@ public:
|
||||||
public slots:
|
public slots:
|
||||||
void sendInvite(const QString &roomid, bool isVideo);
|
void sendInvite(const QString &roomid, bool isVideo);
|
||||||
void syncEvent(const mtx::events::collections::TimelineEvents &event);
|
void syncEvent(const mtx::events::collections::TimelineEvents &event);
|
||||||
|
void refreshDevices() { session_.refreshDevices(); }
|
||||||
void toggleMicMute();
|
void toggleMicMute();
|
||||||
void toggleCameraView() { session_.toggleCameraView(); }
|
void toggleCameraView() { session_.toggleCameraView(); }
|
||||||
void acceptInvite();
|
void acceptInvite();
|
||||||
|
|
|
@ -1292,6 +1292,7 @@ WebRTCSession::refreshDevices()
|
||||||
addDevice(GST_DEVICE_CAST(l->data));
|
addDevice(GST_DEVICE_CAST(l->data));
|
||||||
g_list_free(devices);
|
g_list_free(devices);
|
||||||
}
|
}
|
||||||
|
emit devicesChanged();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue