[图片][图片]
倒计时在安卓机上为什么无法正常显示?countdown(timestamp) { let self = this; let timer = setInterval(function () { let nowTime = new Date(); let endTime = new Date(timestamp * 1000); let t = endTime.getTime() - nowTime.getTime(); if (t > 0) { self.setData({ showEnd: false }) let day = Math.floor(t / 86400000); let hour = Math.floor((t / 3600000) % 24); let min = Math.floor((t / 60000) % 60); let sec = Math.floor((t / 1000) % 60); hour = hour < 10 ? '0' + hour : hour; min = min < 10 ? '0' + min : min; sec = sec < 10 ? '0' + sec : sec; if (day > 0) { self.setData({ day: day, hour: hour, min: min, sec: sec, }); } if (day <= 0 && hour > 0) { self.setData({ day: 0, hour: hour, min: min, sec: sec, }); } if (day <= 0 && hour <= 0) { self.setData({ hour: '00', min: min, sec: sec, }); } } else { self.setData({ showEnd: true }) clearInterval(timer); } }, 1000); }, },
2021-02-13请问解决了吗,我也遇到一样的问题
小程序直播中RTMP服务器连接失败- 需求的场景描述(希望解决的问题) 在线观看直播视频,在微信端小程序体验版中,对于rtmp视频流,调试器弹出2008解码器启动后;先出现3002 RTMP服务器连接失败;再出现2013网络断连, 已启动自动重连,请问这是个什么情况
2020-08-05