使用 ARCore 意图并以signedURL 作为文件参数

问题描述 投票:0回答:1

在使用 gob 文件尝试 ARCore Intent 时,它适用于 GitHub 存储库中可用的文件,但不适用于使用签名 URL 来下载 GLB 文件。

我尝试将signedURL作为文件参数传递,但它总是在我的Android智能手机中返回错误。

意图如下:

intent://arvr.google.com/scene-viewer/1.0?file=https://cdn.us.oss.api.autodesk.com/com.autodesk.oss-persistent/us-east-1/22/e3/6c/f1bca4ba5ec7a29e5fceb4d0d204daf109/jpomglbardample?response-content-type=application%2Foctet-stream&response-content-disposition=attachment%3B+filename%3D%22Hand_Router.glb%22&Expires=1694307153&Signature=W25z4iZg52j5lngLd7spR57dT-78tYsVpcAK~nonfDMhpe82u~qWRgo~uCMjdIdkFKBWZ7CsZqsYQB4XdF2Tr-l7mPbCuCSHCVFcfbUBhLtOgTkrwLcJ~0B5j8yy~t8vjusnYp1tlH2WssYvSqYGMGbptnsfPQAvj2mO43FKppTZeBl-QmxuKBEYxzwDGAG1B7S5t4LryiFfw~Sj99DIaJPs4Ro~tUtYc--1ScIhA4AGrrJUWc57z0s7InFTsSNQEwgJ9tQr~XTle13QfLa6XfqvbhhIN8cx2vLqCFr2VGtB2GDjJ1zBYo57k5o0MLRdtXhQNReC2p~hFcABmK5VEw__&Key-Pair-Id=K5HRZD7MMO1U9&mode=ar_only#Intent;scheme=https;package=com.google.android.googlequicksearchbox;action=android.intent.action.VIEW;S.browser_fallback_url=https://developers.google.com/ar;end;
javascript arcore
1个回答
0
投票

这是由于签名 URL 中的参数所致。 使用

encodeURIComponent()
解决了,如将 url 作为 url 参数传递的推荐方法是什么?

中所述
© www.soinside.com 2019 - 2024. All rights reserved.