Skip to content

Commit

Permalink
test(mediaAspect): log to debug on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
evandrododo committed Dec 9, 2023
1 parent 98278ae commit f52c49e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ function App() {
const { showDebug } = useControls(
{
showDebug: false,
inputNormal: { value: 0.5, min: 0, max: 1, step: 0.01 },
},
{ collapsed: true }
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/VideoPlane/VideoPlane.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ export const VideoPlane = ({ userMedia }: { userMedia: MediaStream }) => {
const mediaHeight = userMedia.getVideoTracks()[0].getSettings().height || 1;
const mediaAspect = mediaWidth / mediaHeight;
const size = useAspect(mediaAspect, 1, 0.1);
console.log("mediaAspect", mediaAspect);

return (
<mesh scale={size} position={[0, 0, 0]}>
<planeGeometry />
Expand Down

0 comments on commit f52c49e

Please sign in to comment.