Comments (9)
我也遇到了一模一样的问题,我的错误比较低级,起因是在粘贴vue项目的时候,少写了一个.browserslistrc文件,然后添加了一下解决了。
from benz-amr-recorder.
用的什么浏览器?你是如何调用 initWithUrl 的?可以贴一些代码上来
from benz-amr-recorder.
chrome 浏览器
$('.play').click(function () {
var amr = new BenzAMRRecorder()
amr.initWithUrl('/api/ldz/chudianh5/11.amr').then(function () {
amr.play();
})
})
from benz-amr-recorder.
稍微谷歌了一下,直觉上像是因为 webpack 4 或者 babel 7……
确认一下,你们的项目是用的 webpack 4 或者 babel 7 还是其他? @chenmengyingfe @lidazhaung-1998
也可以直接把 package.json
的代码贴上来。
from benz-amr-recorder.
对,webpack 4,babel 7。 随后在html中直接使用script标签引入文件没有出现该问题。
from benz-amr-recorder.
Uncaught ReferenceError: _typeof is not defined
from benz-amr-recorder.
复现了,请问有解决方案吗?
{
"version": "0.0.1",
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
"@rollup/plugin-image": "^2.1.1",
"core-js": "^3.6.5",
"dayjs": "^1.11.0",
"vue": "^3.2.2"
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-json": "^4.1.0",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.2.2",
"@vue/eslint-config-prettier": "^6.0.0",
"autoprefixer": "^10.4.2",
"babel-eslint": "^10.1.0",
"cross-env": "^7.0.3",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.3.1",
"eslint-plugin-vue": "^7.0.0",
"postcss": "^8.4.6",
"postcss-pxtorem": "^6.0.0",
"prettier": "^2.6.1",
"rollup-plugin-livereload": "^2.0.5",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-vue": "^6.0.0",
"sass": "^1.26.5",
"sass-loader": "^8.0.2"
},
"keywords": [],
"author": "",
"license": "ISC",
}
from benz-amr-recorder.
Sorry...我暂时没空维护了,谁解决了欢迎提交 pull request
from benz-amr-recorder.
我也遇到了一模一样的问题,我的错误比较低级,起因是在粘贴vue项目的时候,少写了一个.browserslistrc文件,然后添加了一下解决了。
确实可以了,少了.browserslistrc文件
from benz-amr-recorder.
Related Issues (20)
- 可以提供一个销毁组件实例的方法么? HOT 1
- The AudioContext was not allowed to start HOT 1
- 小程序无法使用 HOT 1
- 如果播amr 正播放呢,我把这个页面销毁了,音频还在播放bug HOT 5
- iso静音键打开就不能播放amr了,调大音量无效 HOT 3
- 经常性不能录音 HOT 1
- e Error: Failed to decode. at BenzAMRRecorder.js:30513 HOT 1
- 点击当前音频的播放按钮可以控制播放和暂停; HOT 1
- Unable to decode audio data HOT 4
- No Volume support
- Play two at the same time
- webpack5、babel 7 打包之后调用报错
- 60秒的amr录音文件播放只有37秒 HOT 3
- 同一页面同时完成多个实例url 初始化 HOT 2
- DOMException: Failed to execute 'decodeAudioData' on 'BaseAudioContext': Unable to decode audio data HOT 1
- ios 息屏后在点击播放没有声音
- 可以考虑支持流式录制播放吗 HOT 1
- 浏览器里 测试demo.html报错,播放.amr文件 HOT 2
- 手机通话录音的amr文件好像就无法播放? HOT 1
- 移动端的性能问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from benz-amr-recorder.