Geo-Web-Project / browser

An interface that uses geolocation to navigate/resolve content on the Geo Web.
MIT License
3 stars 8 forks source link

fix: support USDZ on compatible devices #61

Closed tnrdd closed 1 year ago

tnrdd commented 1 year ago

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:

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

Alert Reviewers

@codynhat @gravenp