Bladeren bron

Simplify naming

j8
Lyubo Marinov 8 jaren geleden
bovenliggende
commit
32634356a6

+ 1
- 1
react/features/base/media/components/AbstractVideoTrack.js Bestand weergeven

@@ -100,7 +100,7 @@ export class AbstractVideoTrack extends Component {
100 100
 
101 101
         return (
102 102
             <Video
103
-                mirror = { videoTrack && videoTrack.mirrorVideo }
103
+                mirror = { videoTrack && videoTrack.mirror }
104 104
                 onPlaying = { this._onVideoPlaying }
105 105
                 stream = { stream }
106 106
                 zOrder = { this.props.zOrder } />

+ 4
- 3
react/features/base/tracks/actions.js Bestand weergeven

@@ -68,9 +68,10 @@ export function trackAdded(track) {
68 68
             type => dispatch(trackVideoTypeChanged(track, type)));
69 69
 
70 70
         // participantId
71
+        const local = track.isLocal();
71 72
         let participantId;
72 73
 
73
-        if (track.isLocal()) {
74
+        if (local) {
74 75
             const participant = getLocalParticipant(getState);
75 76
 
76 77
             if (participant) {
@@ -84,9 +85,9 @@ export function trackAdded(track) {
84 85
             type: TRACK_ADDED,
85 86
             track: {
86 87
                 jitsiTrack: track,
87
-                local: track.isLocal(),
88
+                local,
88 89
                 mediaType: track.getType(),
89
-                mirrorVideo: _shouldMirror(track),
90
+                mirror: _shouldMirror(track),
90 91
                 muted: track.isMuted(),
91 92
                 participantId,
92 93
                 videoStarted: false,

+ 3
- 1
react/features/base/tracks/reducer.js Bestand weergeven

@@ -13,7 +13,9 @@ import {
13 13
  * instance.
14 14
  * @property {boolean} local=false - If track is local.
15 15
  * @property {MEDIA_TYPE} mediaType=false - Media type of track.
16
- * @property {boolean} mirrorVideo=false - If video track should be mirrored.
16
+ * @property {boolean} mirror=false - The indicator which determines whether the
17
+ * display/rendering of the track should be mirrored. It only makes sense in the
18
+ * context of video (at least at the time of this writing).
17 19
  * @property {boolean} muted=false - If track is muted.
18 20
  * @property {(string|undefined)} participantId - ID of participant whom this
19 21
  * track belongs to.

Laden…
Annuleren
Opslaan