Pārlūkot izejas kodu

Simplify naming

master
Lyubo Marinov 8 gadus atpakaļ
vecāks
revīzija
32634356a6

+ 1
- 1
react/features/base/media/components/AbstractVideoTrack.js Parādīt failu

100
 
100
 
101
         return (
101
         return (
102
             <Video
102
             <Video
103
-                mirror = { videoTrack && videoTrack.mirrorVideo }
103
+                mirror = { videoTrack && videoTrack.mirror }
104
                 onPlaying = { this._onVideoPlaying }
104
                 onPlaying = { this._onVideoPlaying }
105
                 stream = { stream }
105
                 stream = { stream }
106
                 zOrder = { this.props.zOrder } />
106
                 zOrder = { this.props.zOrder } />

+ 4
- 3
react/features/base/tracks/actions.js Parādīt failu

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

+ 3
- 1
react/features/base/tracks/reducer.js Parādīt failu

13
  * instance.
13
  * instance.
14
  * @property {boolean} local=false - If track is local.
14
  * @property {boolean} local=false - If track is local.
15
  * @property {MEDIA_TYPE} mediaType=false - Media type of track.
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
  * @property {boolean} muted=false - If track is muted.
19
  * @property {boolean} muted=false - If track is muted.
18
  * @property {(string|undefined)} participantId - ID of participant whom this
20
  * @property {(string|undefined)} participantId - ID of participant whom this
19
  * track belongs to.
21
  * track belongs to.

Notiek ielāde…
Atcelt
Saglabāt