Skip to content

Commit

Permalink
Local video overlay with object-fit cover (#861)
Browse files Browse the repository at this point in the history
* add object-fit cover to local video overlay

* changeset
  • Loading branch information
Edoardo Gallo committed Aug 23, 2023
1 parent 19f8673 commit 4f42179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-turkeys-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@signalwire/js': patch
---

Add `object-fit: cover` to the local video overlay element
1 change: 1 addition & 0 deletions packages/js/src/utils/videoElement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const makeLayoutChangedHandler =
localVideo.style.width = '100%'
localVideo.style.height = '100%'
localVideo.style.pointerEvents = 'none'
localVideo.style.objectFit = 'cover'

myLayer.appendChild(localVideo)

Expand Down

0 comments on commit 4f42179

Please sign in to comment.