Skip to content

Commit

Permalink
fix(components): Fix wrong component for playing video
Browse files Browse the repository at this point in the history
Instead of video, videoTexture component should be used
  • Loading branch information
alimoezzi committed Mar 14, 2022
1 parent fd9f45c commit 1037e6b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Stack/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,7 @@ export function Stack({ dom = null, width = 6, height = 4, distance = 8, content
{!clicked[i] && <meshBasicMaterial color='#161a1d' />}
{clicked[i] && (
<meshBasicMaterial>
{/* eslint-disable */}
<video attach='map' args={[videos[i]]} />
{/* eslint-enable */}
<videoTexture attach='map' args={[videos[i]]} />
</meshBasicMaterial>
)}
</mesh>
Expand Down

0 comments on commit 1037e6b

Please sign in to comment.