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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
18 additions and
1 deletions
-
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 |
|
|
|
}, |
|
|
|