-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue 无法获取到 decoder #19
Comments
new FlvPlayer({
decoder: 'flvplayer-decoder-baseline.js',
}) |
最后有画面输出么,我这个库,音频只支持aac |
没有输出视频画面 FlvPlayer 的 hasAudio: false 时,报错 |
有道理,我后面再改下这个逻辑 |
不能,因为 |
也遇到在vue里引入不了decoder的问题,各种路径都试过了,不填使用默认配置也不行。请问作者大大没有其他的引入方式了吗?😂😂 |
@AhJane 假如你找不到相对路径,那可以直接写绝对路径 |
相对路径、绝对路径都找不到呀😂 |
@AhJane 截图看看报什么错 |
@zhw2590582 跟开这个issue的兄弟一样呢 |
@zhw2590582 各种路径组合我都试过了,仍然报这个错呢😭 |
@AhJane 假如你是用vue-cli生成的项目,你可以把 var flv = new FlvPlayer({
container: ".flvplayer-app",
url: "https://flvplayer.js.org/assets/video/weathering-with-you.flv",
decoder: "flvplayer-decoder-baseline.js",
}); |
@zhw2590582 按照你说的这种方法可以找到了,谢谢 |
Expected behaviour
vue 中如何引入 flvplayer-decoder-baseline.js 文件啊?
Actual behaviour
Steps to reproduce
Environment
Console errors (if any)
Link to where the bug is happening
The text was updated successfully, but these errors were encountered: