Fix stream disappearing error when other subscriber leaves a room
- In the current code, the value of the key may continuously change when other subscriber enters or leaves - Changed v-for key index to sub.stream.connection.connectionId
This commit is contained in:
parent
7b0e7e4897
commit
b1eb857f73
@ -30,7 +30,7 @@
|
||||
</div>
|
||||
<div id="video-container" class="col-md-6">
|
||||
<user-video :stream-manager="publisher" @click.native="updateMainVideoStreamManager(publisher)"/>
|
||||
<user-video v-for="(sub, index) in subscribers" :key="index" :stream-manager="sub" @click.native="updateMainVideoStreamManager(sub)"/>
|
||||
<user-video v-for="sub in subscribers" :key="sub.stream.connection.connectionId" :stream-manager="sub" @click.native="updateMainVideoStreamManager(sub)"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user