Skip to content

Commit fd79b66

Browse files
authored
Qfix office layout (#9703)
* Fix fullscreen Room layout after screen sharing Signed-off-by: Anton Alexeyev <[email protected]> * Fix camera preview constraints Signed-off-by: Anton Alexeyev <[email protected]> * Fix formatting Signed-off-by: Anton Alexeyev <[email protected]> * Use ideal constraints Signed-off-by: Anton Alexeyev <[email protected]> --------- Signed-off-by: Anton Alexeyev <[email protected]>
1 parent 07a5ebe commit fd79b66

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

plugins/love-resources/src/components/Room.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
2222
import love from '../plugin'
2323
import { waitForOfficeLoaded, currentRoom, infos, invites, myInfo, myRequests } from '../stores'
24-
import { isFullScreen, tryConnect } from '../utils'
24+
import { isFullScreen, lk, tryConnect } from '../utils'
2525
import ControlBar from './ControlBar.svelte'
2626
import { lkSessionConnected } from '../liveKitClient'
2727
import ParticipantsListView from './meeting/ParticipantsListView.svelte'
@@ -125,6 +125,7 @@
125125
}
126126
127127
$: if (((document.fullscreenElement && !$isFullScreen) || $isFullScreen) && roomEl) checkFullscreen()
128+
$: updateStyle(lk.numParticipants, withScreenSharing)
128129
</script>
129130

130131
<div bind:this={roomEl} class="flex-col-center w-full h-full" class:theme-dark={$isFullScreen}>

plugins/love-resources/src/components/meeting/ParticipantView.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@
236236

237237
<style lang="scss">
238238
:global(.video) {
239-
overflow: hidden;
240239
object-fit: cover;
241240
border-radius: 0.75rem;
242241
width: 100%;

plugins/media-resources/src/components/MediaPopupCamPreview.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
let video: HTMLVideoElement | null = null
2424
2525
async function updateStream (device: MediaDeviceInfo): Promise<void> {
26-
const constraints = device !== null ? { video: { deviceId: { exact: device.deviceId } } } : { video: true }
26+
const constraints =
27+
device !== null
28+
? { video: { deviceId: { exact: device.deviceId }, width: { ideal: 1280 }, height: { ideal: 720 } } }
29+
: { video: { width: { ideal: 1280 }, height: { ideal: 720 } } }
2730
2831
releaseStream(stream)
2932

0 commit comments

Comments
 (0)