When the media object in the gallery is an USDZ file (file format for Apple's AR Quick Look) show a message that inform the user the model can only be viewed in AR.
Tested on iOS 16.2, here there are some free USDZ models if needed.
Issue
fixes #58
Checklist:
[x] My commit message follows the Conventional Commits specification
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have tested my code
[x] My changes generate no new warnings
[x] My PR is rebased off the most recent develop or appropriate feature branch
[x] My PR is opened against the develop or appropriate feature branch
Additional comments
With USDZ being just a zipped USD file the browser try to guess and give a .zip extension to the file returned from the gateway query.
Byte for byte is the same but the AR app doesn't render it unless it has a .usdz extension, a solution is to specify the file type by passing the file name query param in the URL.
https://github.com/web3-storage/web3.storage/issues/1122#issuecomment-1121249610
Description
When the media object in the gallery is an USDZ file (file format for Apple's AR Quick Look) show a message that inform the user the model can only be viewed in AR.
Tested on iOS 16.2, here there are some free USDZ models if needed.
Issue
fixes #58
Checklist:
develop
or appropriate feature branchdevelop
or appropriate feature branchAdditional comments
With USDZ being just a zipped USD file the browser try to guess and give a .zip extension to the file returned from the gateway query. Byte for byte is the same but the AR app doesn't render it unless it has a .usdz extension, a solution is to specify the file type by passing the file name query param in the URL. https://github.com/web3-storage/web3.storage/issues/1122#issuecomment-1121249610
Alert Reviewers
@codynhat @gravenp