You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varplayer=newAliplayer({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");});
The text was updated successfully, but these errors were encountered:
varplayer=newAliplayer({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");});
aliplayercomponents 1.0.8版本,挂载弹幕组件报错
a.CommentManager is not a constructor
,播放器无法使用。官网在线功能演示弹幕功能也无法使用
The text was updated successfully, but these errors were encountered: