diff options
author | DeepBlueV7.X <nicolas.werner@hotmail.de> | 2020-11-09 21:49:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 21:49:26 +0100 |
commit | 27bf654d92d5bd6f1709489eea56847c00a0b029 (patch) | |
tree | 4fd1a3ad6f6d8c137d8fcf55f8e5eded0fcea5a1 /src/timeline | |
parent | Merge pull request #319 from HarHarLinks/patch-1 (diff) | |
parent | Video calls: add local webcam view (diff) | |
download | nheko-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.cpp | 6 | ||||
-rw-r--r-- | src/timeline/TimelineViewManager.h | 1 |
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; |