ios - A-frame 图像在移动 ios Safari 的反应中未正确加载。我得到一个黑盒子而不是图像
问题描述
一切似乎在 android 上运行良好,但 ios 始终给我一个块框。
<Entity primitive="a-assets">
{userState.photo_memory_filepath && !loading ? (
<img
id="first-image"
src={`${GOOGLE_CLOUD_BUCKET_PUBLIC}/${userState.photo_memory_filepath}`}
crossOrigin="Anonymous"
/>
) : null}
</Entity>
后来我有
{userState.photo_memory_filepath && !loading ? (
<Entity
primitive="a-image"
src="#first-image"
position="0 3 -9"
width="2"
height="2"
material="side: double"
id="first-image-view"
></Entity>
) : null}
Loading 是一种 redux 状态,在发出请求之前设置为 true。在桌面网络和安卓上一切正常,但 ios 让我大吃一惊。哦,我还尝试了 createObjectURL,它也适用于桌面和 android,但对 ios 无用。我真的相信 IOS 移动 webapp 开发者被诅咒了
解决方案
推荐阅读
- webpack - 如何防止 CleanWebpackPlugin 删除静态文件
- c# - 以另一种形式从选定行更新数据库
- node.js - 如何在连接到节点上的 websocket 服务器时传递消息
- ios - Swift - 在 UITableViewCell 内获取按钮单击
- python - 多个直方图的 wasserstein 距离
- c# - 在c#中获取类似于RamMap的映射文件的大小
- python - 迭代数据库列并提取特定值
- python - 浏览器中未显示 Django 表单文本输入字段
- javascript - Reactjs 没有按预期呈现条件输出
- python - How to draw triangels in 3D using matplotlib?