diff --git a/js/packages/web/src/components/ArtCard/index.tsx b/js/packages/web/src/components/ArtCard/index.tsx index 64c498e..0cf4f3d 100644 --- a/js/packages/web/src/components/ArtCard/index.tsx +++ b/js/packages/web/src/components/ArtCard/index.tsx @@ -82,7 +82,6 @@ export const ArtCard = (props: ArtCardProps) => { { const [playerApi, setPlayerApi] = useState(); @@ -125,9 +128,10 @@ const VideoArtContent = ({ controlsList="nodownload" style={style} loop={true} - poster={extension} + poster={uri} > {likelyVideo && } + {animationURL && } {files?.filter(f => typeof f !== 'string').map((f: any) => )} ) @@ -150,7 +154,6 @@ export const ArtContent = ({ uri, animationURL, - extension, files, }: { category?: MetadataCategory; @@ -163,8 +166,6 @@ export const ArtContent = ({ active?: boolean; allowMeshRender?: boolean; pubkey?: PublicKey | string, - - extension?: string; uri?: string; animationURL?: string; files?: (MetadataFile | string)[]; @@ -180,9 +181,13 @@ export const ArtContent = ({ category = data.properties.category; } - if (allowMeshRender && (extension?.endsWith('.glb') || category === 'vr')) { + animationURL = animationURL || ''; + + const animationUrlExt = new URLSearchParams(getLast(animationURL.split("?"))).get("ext"); + + if (allowMeshRender && (category === 'vr' || animationUrlExt === 'glb' || animationUrlExt === 'gltf')) { return ; @@ -190,10 +195,11 @@ export const ArtContent = ({ const content = category === 'video' ? ( ) : ( diff --git a/js/packages/web/src/views/art/index.tsx b/js/packages/web/src/views/art/index.tsx index 6f9e2df..cea7721 100644 --- a/js/packages/web/src/views/art/index.tsx +++ b/js/packages/web/src/views/art/index.tsx @@ -63,6 +63,7 @@ export const ArtView = () => { className="artwork-image" pubkey={id} active={true} + allowMeshRender={true} /> {/* */} diff --git a/js/packages/web/src/views/auction/billing.tsx b/js/packages/web/src/views/auction/billing.tsx index 6aecd22..90f9a87 100644 --- a/js/packages/web/src/views/auction/billing.tsx +++ b/js/packages/web/src/views/auction/billing.tsx @@ -416,6 +416,7 @@ export const InnerBillingView = ({ diff --git a/js/packages/web/src/views/auction/index.tsx b/js/packages/web/src/views/auction/index.tsx index df9afcd..8c52829 100644 --- a/js/packages/web/src/views/auction/index.tsx +++ b/js/packages/web/src/views/auction/index.tsx @@ -64,6 +64,7 @@ export const AuctionItem = ({ className="artwork-image stack-item" style={style} active={active} + allowMeshRender={true} /> );