简体   繁体   English

无法使用Wavesurfer播放大型M4A音频文件

[英]Unable to play large m4a audio file using wavesurfer

I am trying to develop a UI for editing a audio file using wavesurfer.js. 我正在尝试开发一个使用waveurfer.js编辑音频文件的UI。 I am adding this as feature to the existing ember application. 我将其作为功能添加到现有的余烬应用程序中。 On loading large audio files of m4a format, I received an error: error-handler.js:63 Error decoding audiobuffer Uncaught (in promise) DOMException 加载m4a格式的大型音频文件时,出现错误:error-handler.js:63解码audiobuffer时出错未捕获(承诺)DOMException

code screenshot 代码截图

Its working very well in firefox and its working in chrome(if i use plain javascript). 它在Firefox和chrome中工作得很好(如果我使用纯JavaScript)。 And its working in both browsers when tested with a new ember application. 在使用新的余烬应用程序进行测试时,它可以在两种浏览器中正常工作。 Its only a problem with the current ember application and that too only in chrome. 当前的余烬应用程序只是一个问题,而铬合金也是如此。

Error decoding audio buffer Uncaught (in promise) DOMException 解码音频缓冲区未捕获(承诺)时发生错误DOMException

Ola @premji012, thanks for your question 🎉 奥拉@ premji012,感谢您的提问🎉

This is unlikely an error specific to Ember as it is Just Javascript™️ and it should be able to run any external JavaScript library without any issue. 这不太可能是Ember特有的错误,因为它只是Just Javascript™️,它应该能够运行任何外部JavaScript库,而不会出现任何问题。

What it seems like to me is that you have an unhandled error in a promise somewhere that may or may not be related to using wavesurfer.js 在我看来,您的诺言中存在未处理的错误,该错误可能与使用waveurfer.js相关或无关

When you open Chrome Devtools does it give you a stack-trace with a line number or more information about the unhandled error? 当您打开Chrome Devtools时,它会为您提供带有行号的堆栈跟踪信息还是有关未处理错误的更多信息?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM