summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authortrilene <trilene@runbox.com>2020-11-09 10:51:17 -0500
committertrilene <trilene@runbox.com>2020-11-09 10:51:17 -0500
commitd391404b796c08698d5291ee0307b12d111cb01d (patch)
treee3e8cc94c5191b6dd18caac58b90bb6a3eed1f0f /src/timeline
parentFix crash when stun server selected (diff)
downloadnheko-d391404b796c08698d5291ee0307b12d111cb01d.tar.xz
Video calls: add local webcam view
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/TimelineViewManager.cpp6
-rw-r--r--src/timeline/TimelineViewManager.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index f9d7d00c..3146c92f 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -331,6 +331,12 @@ TimelineViewManager::toggleMicMute() } void +TimelineViewManager::toggleCameraView() +{ + WebRTCSession::instance().toggleCameraView(); +} + +void TimelineViewManager::openImageOverlay(QString mxcUrl, QString eventId) const { QQuickImageResponse *imgResponse = diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h
index 67eeee5b..f330d870 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -61,6 +61,7 @@ public: QString callPartyAvatarUrl() const { return callManager_->callPartyAvatarUrl(); } bool isMicMuted() const { return WebRTCSession::instance().isMicMuted(); } Q_INVOKABLE void toggleMicMute(); + Q_INVOKABLE void toggleCameraView(); Q_INVOKABLE void openImageOverlay(QString mxcUrl, QString eventId) const; Q_INVOKABLE QColor userColor(QString id, QColor background); Q_INVOKABLE QString escapeEmoji(QString str) const;