File tree 3 files changed +18
-3
lines changed
3 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 24
24
<img class="avatar" :src="selfUserInfo.portrait">
25
25
</div>
26
26
<video v-else
27
- class="video"
27
+ class="video me "
28
28
ref="localVideo"
29
29
:srcObject.prop="selfUserInfo._stream"
30
30
playsInline
@@ -916,4 +916,9 @@ footer {
916
916
color: white;
917
917
background: #e0d6d6d6;
918
918
}
919
+
920
+ .video.me{
921
+ -webkit-transform: scaleX(-1);
922
+ transform: scaleX(-1);
923
+ }
919
924
</style>
Original file line number Diff line number Diff line change 26
26
<p>我</p>
27
27
</div>
28
28
<video v-else
29
- class="video"
29
+ class="video me "
30
30
ref="localVideo"
31
31
:srcObject.prop="selfUserInfo._stream"
32
32
playsInline
@@ -437,4 +437,9 @@ footer {
437
437
width: 60px;
438
438
height: 60px;
439
439
}
440
+
441
+ .video.me{
442
+ -webkit-transform: scaleX(-1);
443
+ transform: scaleX(-1);
444
+ }
440
445
</style>
Original file line number Diff line number Diff line change 44
44
<div class="local-media-container">
45
45
<video v-if="status === 4 || localStream"
46
46
ref="localVideo"
47
- class="localVideo"
47
+ class="localVideo me "
48
48
:srcObject.prop="localStream"
49
49
muted
50
50
playsInline autoPlay/>
@@ -353,6 +353,11 @@ export default {
353
353
left: 0;
354
354
}
355
355
356
+ .localVideo.me{
357
+ -webkit-transform: scaleX(-1);
358
+ transform: scaleX(-1);
359
+ }
360
+
356
361
.video {
357
362
width: 100%;
358
363
height: 100%;
You can’t perform that action at this time.
0 commit comments