mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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();
|
||||
}
|
||||
else {
|
||||
CallManager.refreshDevices();
|
||||
var dialog = placeCallDialog.createObject(timelineRoot);
|
||||
dialog.open();
|
||||
}
|
||||
|
|
|
@ -71,6 +71,7 @@ Rectangle {
|
|||
ToolTip.visible: hovered
|
||||
ToolTip.text: qsTr("Devices")
|
||||
onClicked: {
|
||||
CallManager.refreshDevices();
|
||||
var dialog = devicesDialog.createObject(timelineRoot);
|
||||
dialog.open();
|
||||
}
|
||||
|
|
|
@ -53,6 +53,7 @@ public:
|
|||
public slots:
|
||||
void sendInvite(const QString &roomid, bool isVideo);
|
||||
void syncEvent(const mtx::events::collections::TimelineEvents &event);
|
||||
void refreshDevices() { session_.refreshDevices(); }
|
||||
void toggleMicMute();
|
||||
void toggleCameraView() { session_.toggleCameraView(); }
|
||||
void acceptInvite();
|
||||
|
|
|
@ -1292,6 +1292,7 @@ WebRTCSession::refreshDevices()
|
|||
addDevice(GST_DEVICE_CAST(l->data));
|
||||
g_list_free(devices);
|
||||
}
|
||||
emit devicesChanged();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue