弹幕在视频播放完重播时候没有
发布于 5 年前 作者 ming23 2295 次浏览 来自 问答

弹幕在视频播放完重播时候没有

3 回复

wechatide://minicode/kKuwOOmB6OY1

<view class="container log-list">
 <video src="https://static.yk.qq.com/bikan/folger/mpdemo/1.mp4" bindtouchstart="start" danmu-list="{{danmuList}}" enable-danmu></video>
</view>
const util = require('../../utils/util.js');
const danmuList = [
{
text: '组队组队啊大哥',
       color: '#FF9800',
       time: 1
   }, {
text: '雾草牛逼啊~~',
       color: '##FFFFFF',
       time: 6
   }, {
text: '确认过眼神,我遇到对的电影',
       color: '#FF4081',
       time: 11
   }, {
text: '已阅!好评!好评!',
       color: '#009688',
       time: 16
   }, {
text: '雾草第一次看微信有这种广告啊',
       color: '#FFFFFF',
       time: 21
   }, {
text: '好评好评好评好评好评好评~~~',
       color: '#FFFFFF',
       time: 26
   }, {
text: '老板,给我一打电影票',
       color: '#E51C23',
       time: 31
   }, {
text: '如果有VR版的就更好了',
       color: '#FFFFFF',
       time: 36
   }, {
text: ' R U OK? REALLY OK!!!!',
       color: '#FFFFFF',
       time: 41
   }, {
text: '我就问什么时候买票',
       color: '#FFFFFF',
       time: 46
   }
];
Page({
data: {
logs: [],
       danmuList
},
   onLoad: function () {
this.setData({
logs: (wx.getStorageSync('logs') || []).map(log => {
return util.formatTime(new Date(log))
})
})
},
   start(){
console.log('start');
       wx.showToast({
title:'start'
       })
}
})

在pc调试器上有的,在安卓手机上播放完重播后没有

回到顶部