Browse Source

Merge pull request #4082 from nextcloud/bugfix/4078/show-other-persons-video-although-they-share-the-screen

Show other persons video when they share their screen
pull/4086/head
Joas Schilling 5 years ago
committed by GitHub
parent
commit
2318d0c921
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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