Comments (1)
aliplayercomponents 1.0.8版本,挂载弹幕组件报错
a.CommentManager is not a constructor
,播放器无法使用。<link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.11.0/skins/default/aliplayer-min.css" /> <script charset="utf-8" type="text/javascript" src="https://g.alicdn.com/de/prismplayer/2.11.0/aliplayer-h5-min.js"></script> <script type="text/javascript" charset="utf-8" src="/aliplayercomponents-1.0.8.min.js"></script>
var player = new Aliplayer({ id: "player-con", source: "//player.alicdn.com/video/editor.mp4", width: "100%", height: "500px", cover: 'https://img.alicdn.com/tps/TB1EXIhOFXXXXcIaXXXXXXXXXXX-760-340.jpg', /* To set an album art, you must set 'autoplay' and 'preload' to 'false' */ autoplay: false, preload: false, isLive: false, components: [ { name: 'AliplayerDanmuComponent', type: AliPlayerComponent.AliplayerDanmuComponent, args: [{ "mode": 1, // mode 表示弹幕的类型,参考 弹幕类型 https://github.com/jabbany/CommentCoreLibrary/blob/master/docs/CommentTypes.md "text": "test", // text 表示弹幕的文字内容。注意:在创造弹幕对象后,对 text 的更改将无意义。 "stime": 1000, // stime 表示弹幕相对于视频位置的开始时间(ms),0即在视频开始立即出现 "size": 25, // 弹幕的文字大小 "color": 0xffffff // 文字颜色 }] } ] }, function (player) { console.log("The player is created"); });
请下载新的1.0.8版本的组件,我做了修复
from aliyunplayer_web.
Related Issues (20)
- uniapp引入aliplayercomponents-1.0.8.min.js插件库,使用插件报错 HOT 1
- 1个页面上多个播放器实例,preload设置成false,调用dispose会导致其他播放器无法播放 HOT 15
- 使用artc拉流,推流没有开始,播放器请求速度慢,切换其他频道,artc播放器驳回销毁
- 试看组件出错 未登录打开视频时 解析数据出错(fragParsingError) code4013 HOT 11
- 打包自定义组件时报错:'.' 不是内部或外部命令,也不是可运行的程序
- 打包自定义组件时报错:'.' 不是内部或外部命令,也不是可运行的程序 HOT 5
- 使用reloaduserPlayInfoAndVidRequestMts提示accessSecret is not defined HOT 2
- 希望项目能有个明确的开源协议
- 微信小程序嵌入网页时,ios端ready方法不会触发
- AliPlayerComponent.VideoADComponent m3u8无法播放
- 微信小程序内不支持加密的m3u8播放吗?
- 使用QualityComponent时,设置defaultDefinition无效,初始播放不会触发setCurrentQuality
- 使用弹幕组件时, 会输出`this.timeline.sort is not a function` HOT 1
- 清晰度切换mp4资源无法播放
- CommentCoreLibrary 自定义弹幕
- 播放音频文件时,由于创建的是audio,会因找不到video而引发异常
- 【求助】VUE2视频截图报错 HOT 1
- 在360极速浏览器上播放H264格式的视频只有声音没有图像怎么处理
- 视频只有声音没有图像
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 aliyunplayer_web.