html - AFrame - 在 Worker 404 上加载标记时出错
问题描述
我在尝试加载我的 nft 标记时遇到问题,这就是我所做的:
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar-nft.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs="trackingMethod: best; sourceType: webcam;debugUIEnabled: false;">
<a-nft
type="nft"
url="nftmarkers/pinball"
smooth="true"
smoothCount="10"
smoothTolerance=".01"
smoothThreshold="5">
<a-box position='0 0.5 0' ></a-box>
</a-nft>
<a-camera></a-camera>
</a-scene>
</body>
</html>
这就是它返回给我的错误:
432abd3a-f330-4cc8-8c03-faa918143656:76 Error in loading marker on Worker 404
解决方案
问题是我的服务器将页面作为结果而不是内容发送。我修复了将网络应用程序发送到 firebase 的问题。
推荐阅读
- python - KeyError:使用 fcswrite 库时出现“'FCS 格式'”
- python - CSV:如何将列添加到列表并从另一个列表中找到最佳匹配(最接近的值)?
- ag-grid - setRowData 后的 Ag-Grid 事件和所有单元格都已呈现
- magento - Magento 2更改静态内容文件夹
- node.js - 如何回到 nodejs 中的 shell:最新的 docker 镜像?
- plot - 同一轴上的两个图 \addplot3 (pgfplots)
- reactjs - 从上下文重置屏幕堆栈给出“无法对未安装的组件执行 React 状态更新”。
- android - 当android应用程序注销并与另一个用户登录时如何重新生成新的FCM令牌
- r - 包中是否有任何东西可以确定是否构建了小插曲?
- html - CF7 中的自定义 HTML