summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2020-11-09 21:49:26 +0100
committerGitHub <noreply@github.com>2020-11-09 21:49:26 +0100
commit27bf654d92d5bd6f1709489eea56847c00a0b029 (patch)
tree4fd1a3ad6f6d8c137d8fcf55f8e5eded0fcea5a1 /src/timeline
parentMerge pull request #319 from HarHarLinks/patch-1 (diff)
parentVideo calls: add local webcam view (diff)
downloadnheko-27bf654d92d5bd6f1709489eea56847c00a0b029.tar.xz
Merge pull request #320 from trilene/webrtc-video
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 b2aea4bf..3b80d020 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;