在Vue.js项目中如何使用阿里云视频点播的Web播放器SDK?
阿里云的官方文档页面:https://help.aliyun.com/docum...
我的代码:
报错:
prism-h5-min.js:2 Uncaught TypeError: 没有为播放器指定容器
at new i (prism-h5-min.js:2)
at eval (eval at (app.js:1555), :4:14)
at Object. (app.js:1555)
at __webpack_require__ (app.js:687)
at fn (app.js:110)
at eval (eval at (app.js:1562), :7:3)
at Object. (app.js:1562)
at __webpack_require__ (app.js:687)
at fn (app.js:110)
at eval (eval at (app.js:1053), :19:77)
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
在index.html引入js
然后在build/webpack.base.conf.js中找到webpackConfig
里面配置
在你的项目中