You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if there isn't a valid extension within the resource URL (returned by getExtension function of third-party resource-loader module), it will load using text by default, instead of arraybuffer, and there we are getting an error
Failed to execute 'decodeAudioData' on 'BaseAudioContext': parameter 1 is not of type 'ArrayBuffer'.
建议如果设置资源type字段为audio,强制使用arraybuffer
i suggest if user sets the resource's type field to audio, use arraybuffer to parse fetched data rather than let the third-party module determine by itself (code)
The text was updated successfully, but these errors were encountered:
eva.js/packages/eva.js/lib/loader/Resource.ts
Line 67 in c932f97
如果资源URL中没有有效后缀(通过resource-loader的
getExtension
方法获得),会导致默认使用text
格式,而非arraybuffer
返回,加载音频报错if there isn't a valid extension within the resource URL (returned by
getExtension
function of third-party resource-loader module), it will load usingtext
by default, instead ofarraybuffer
, and there we are getting an error建议如果设置资源
type
字段为audio
,强制使用arraybuffer
i suggest if user sets the resource's
type
field toaudio
, usearraybuffer
to parse fetched data rather than let the third-party module determine by itself (code)The text was updated successfully, but these errors were encountered: