我正在使用A-Frame,当我导入音频文件时,它们根本不会播放。我已经使用Oculus Go在Safari,Chrome和Im上进行了尝试,并且在浏览器中可以找到游戏,但是也没有音频。有什么建议吗?
-t kernel_type : set type of kernel function (default 2)
0 -- linear: u'*v
1 -- polynomial: (gamma*u'*v + coef0)^degree
2 -- radial basis function: exp(-gamma*|u-v|^2)
3 -- sigmoid: tanh(gamma*u'*v + coef0)
4 -- precomputed kernel (kernel values in training_set_file)
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>VR GAME 1</title>
<meta name="description" content="VR GAME 1"/>
<script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto%7CRoboto+Mono" media="all"/>
<script src="https://cdn.jsdelivr.net/npm/aframe-gif-shader@0.2.0/dist/aframe-gif-shader.min.js"></script>
<script src="https://rawgit.com/mayognaise/aframe-gif-component/master/dist/aframe-gif-component.min.js"></script>
答案 0 :(得分:2)
语法不正确。应该是
<a-sound src=“url(no.mp3)”><a-sound>
或在引用A资产时:
<a—sound src=“#no”><a-sound>
还请注意,您正在为下面的a-assets和a-sound中的两个音频元素分配相同的ID。更改这些ID