- live-pusher劫持系统音量(iOS)
开启live-pusher之后,系统的媒体音量被设置的很低,通过音量按钮也无法调节
2018-11-04 - IDE模拟器不识别web cam
在电脑上插了摄像头,可是打开模拟器还是这个样子……摄像头装好了(windows的camera app可以看到)同一个摄像头在同事电脑上可以用。尝试重启,重装开发工具也没有用 “IDE暂不支持camera组件,请在真机调试” [图片]
2018-07-26 - cover-view性能明显下降
最近的update里面发现cover-view性能明显下降,原先页面上放十几个个cover-view/cover-image对性能没有明显影响,现在只要放五六个cover-view就出现更新非常缓慢(3-5秒后cover view才更新)的情况。 请问是不是已知的问题,如果不是的话这种regression要如何提交report你们才好定位问题(比如如何在手机上rollback到旧版本基础库?)
2018-06-20 - <video>组件bindtimeupdate设备currentTime精度问题
首先频率有问题: https://developers.weixin.qq.com/blogdetail?action=get_post_info&docid=00006e5976cf9866f726a217b51800&highline=video%7C%26%E7%BB%84%E4%BB%B6%7C%26%E7%9A%84%7C%26bindtimeupdate&token=905838030&lang=zh_CN 但是精度有问题,模拟器上出来是是浮点数,设备上(iOS,Android)都是整数: 代码如下: [代码]onStartPlay () {[代码][代码] [代码][代码]this[代码][代码].startWallClcokInSec = [代码][代码]new[代码] [代码]Date().getTime() / 1000[代码][代码] [代码][代码]this[代码][代码].lastVideoTimeInSec = 0.0[代码][代码]},[代码][代码]onTimeUpdate (e) {[代码][代码] [代码][代码]var[代码] [代码]currentWallClockInSec = [代码][代码]new[代码] [代码]Date().getTime() / 1000[代码][代码] [代码][代码]var[代码] [代码]currentVideoTimeInSec = e.mp.detail.currentTime[代码][代码] [代码][代码]var[代码] [代码]wallClock = currentWallClockInSec - [代码][代码]this[代码][代码].startWallClcokInSec[代码][代码] [代码][代码]console.log(`wallclock:${(wallClock).toFixed(3)}, videoTime: ${(currentVideoTimeInSec).toFixed(3)}`)[代码][代码]}[代码]模拟器输出: [代码]wallclock:1.247, videoTime: 1.098[代码][代码]wallclock:1.747, videoTime: 1.598[代码][代码]wallclock:1.997, videoTime: 1.848[代码][代码]wallclock:2.248, videoTime: 2.098[代码][代码]wallclock:2.747, videoTime: 2.598[代码][代码]wallclock:3.247, videoTime: 3.098[代码][代码]wallclock:3.747, videoTime: 3.598[代码][代码]wallclock:3.997, videoTime: 3.848[代码] iOS输出: [代码]wallclock:0.232, videoTime: 0.000[代码][代码]wallclock:0.234, videoTime: 0.000[代码][代码]wallclock:1.235, videoTime: 1.000[代码][代码]wallclock:2.251, videoTime: 2.000[代码][代码]wallclock:3.237, videoTime: 3.000[代码][代码]wallclock:4.241, videoTime: 4.000[代码][代码]wallclock:4.875, videoTime: 4.000[代码] bindtimeupdate参数:(貌似进来只是个整数?) [代码]JSON.stringify(e, null, 2):[代码][代码][代码]"{ "mp": { "type": "timeupdate", "target": { "dataset": { "eventid": "0" }, "id": "", "offsetTop": 0, "offsetLeft": 0 }, "currentTarget": { "dataset": { "eventid": "0" }, "id": "", "offsetTop": 0, "offsetLeft": 0 }, "timeStamp": 78938, "detail": { "currentTime": 4, "duration": 4.63 } }, "type": "timeupdate", "timeStamp": 78938, "target": { "dataset": { "eventid": "0" }, "id": "", "offsetTop": 0, "offsetLeft": 0, "currentTime": 4, "duration": 4.63 }, "currentTarget": { "dataset": { "eventid": "0" }, "id": "", "offsetTop": 0, "offsetLeft": 0 } }" [代码][代码] 设备信息: {"errMsg":"getSystemInfo:ok","batteryLevel":95,"version":"6.6.6","system":"iOS 11.3","windowHeight":603,"pixelRatio":2,"screenHeight":667,"language":"zh_CN","statusBarHeight":20,"windowWidth":375,"model":"iPhone 7<iPhone9,1>","screenWidth":375,"fontSizeSetting":16,"brand":"iPhone","platform":"ios","SDKVersion":"1.9.98"}
2018-04-26