Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Simplify naming

Lyubo Marinov32634356a6d6
diff --git a/react/features/base/media/components/AbstractVideoTrack.js b/react/features/base/media/components/AbstractVideoTrack.js
index bd640912d2..cb8587f7bd 100644
--- a/react/features/base/media/components/AbstractVideoTrack.js
+++ b/react/features/base/media/components/AbstractVideoTrack.js
@@ -100,7 +100,7 @@ export class AbstractVideoTrack extends Component {
return (
<Video
- mirror = { videoTrack && videoTrack.mirrorVideo }
+ mirror = { videoTrack && videoTrack.mirror }
onPlaying = { this._onVideoPlaying }
stream = { stream }
zOrder = { this.props.zOrder } />
diff --git a/react/features/base/tracks/actions.js b/react/features/base/tracks/actions.js
index af7ab82ca5..38b68c57ab 100644
--- a/react/features/base/tracks/actions.js
+++ b/react/features/base/tracks/actions.js
@@ -68,9 +68,10 @@ export function trackAdded(track) {
type => dispatch(trackVideoTypeChanged(track, type)));
// participantId
+ const local = track.isLocal();
let participantId;
- if (track.isLocal()) {
+ if (local) {
const participant = getLocalParticipant(getState);
if (participant) {
@@ -84,9 +85,9 @@ export function trackAdded(track) {
type: TRACK_ADDED,
track: {
jitsiTrack: track,
- local: track.isLocal(),
+ local,
mediaType: track.getType(),
- mirrorVideo: _shouldMirror(track),
+ mirror: _shouldMirror(track),
muted: track.isMuted(),
participantId,
videoStarted: false,
diff --git a/react/features/base/tracks/reducer.js b/react/features/base/tracks/reducer.js
index eb34651ea0..f9c668a6f0 100644
--- a/react/features/base/tracks/reducer.js
+++ b/react/features/base/tracks/reducer.js
@@ -13,7 +13,9 @@ import {
* instance.
* @property {boolean} local=false - If track is local.
* @property {MEDIA_TYPE} mediaType=false - Media type of track.
- * @property {boolean} mirrorVideo=false - If video track should be mirrored.
+ * @property {boolean} mirror=false - The indicator which determines whether the
+ * display/rendering of the track should be mirrored. It only makes sense in the
+ * context of video (at least at the time of this writing).
* @property {boolean} muted=false - If track is muted.
* @property {(string|undefined)} participantId - ID of participant whom this
* track belongs to.