Browse Source

Show other persons video when they share their screen

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4082/head
Joas Schilling 5 years ago
parent
commit
87545f8a45
No known key found for this signature in database GPG Key ID: 7076EA9751AACDDA
  1. 19
      src/components/CallView/CallView.vue

19
src/components/CallView/CallView.vue

@ -186,6 +186,14 @@ export default {
return this.callParticipantModels.filter(callParticipantModel => callParticipantModel.attributes.screen)
},
callParticipantModelsWithVideo() {
return this.callParticipantModels.filter(callParticipantModel => {
return callParticipantModel.attributes.videoAvailable
&& this.sharedDatas[callParticipantModel.attributes.peerId].videoEnabled
&& (typeof callParticipantModel.attributes.stream === 'object')
})
},
localScreen() {
return localMediaModel.attributes.localScreen
},
@ -199,7 +207,12 @@ export default {
},
showGrid() {
return (!this.isOneToOneView || this.showLocalScreen) && !this.isSidebar
return !this.isSidebar
&& (
!this.isOneToOneView
|| this.showLocalScreen
|| (this.showRemoteScreen && this.hasRemoteVideo)
)
},
gridTargetAspectRatio() {
@ -230,6 +243,10 @@ export default {
return this.localMediaModel.attributes.videoEnabled
},
hasRemoteVideo() {
return this.callParticipantModelsWithVideo.length > 0
},
hasLocalScreen() {
return !!this.localMediaModel.attributes.localScreen
},

Loading…
Cancel
Save