- Android 小程序live-player组件拉rtmp流很慢是为什么?
用live-player组件官方示例代码拉取rtmp流,ios很快就拉到了流并立即显示画面没有任何延迟,Android需要等待3-6秒后才显示画面; 经过日志分析,在调用LivePlayerContext的play方法之后,Android端等待3-6秒之后bindstatechange才会回调组件状态,以下是完整输出日志; Fri Oct 29 2021 10:29:18 GMT+0800 (CST)开始播放拉流//此处调用LivePlayerContext的play方法 play successFri Oct 29 2021 10:29:18 GMT+0800 (CST) Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":-2302,"message":"Failed to get accelerated pull address"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":2001,"message":"connection SUCCESS"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":2002,"message":"begin receiving stream"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":2008,"message":"Enables H264 hardware decoding"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":2004,"message":"Video play started"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:22 GMT+0800 (CST)live-player statechange: {"code":2026,"message":"Audio play started"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:23 GMT+0800 (CST)live-player statechange: {"code":2009,"message":"Resolution changed to368x640"} Invoke event statechange in component: index/index Fri Oct 29 2021 10:29:23 GMT+0800 (CST)live-player statechange: {"code":2003,"message":"Render the first video frame(IDR)"} 目前出现问题的机型为所有Android手机都是这样,ios不存在这个问题基本秒开,Android微信版本号为:8.0.15
2021-10-29 - crypto-js npm 包的使用问题?
npm install crypto-js --production 构建npm [图片] 使用: import hmacSHA512 from 'crypto-js/hmac-sha512';但是crypto-js目录只有一个index文件,所以只能用 var CryptoJS = require("crypto-js"); console.log(CryptoJS.HmacSHA512("Message", "Key")); 结果: [图片] [图片] 请告诉我解决办法
2019-09-26 - image组件加载本地图片慢正常么?
如题,在使用image组件加载主包里的图片时在部分机型上有明显的延迟,具体现象是文字内容出现后过了近1s图片才出现,比如三星s8+,华为部分机型,但是在苹果上没有这个问题,甚至果6都很流畅,图片大小只有几k,使用了widthFix这个mode,设置了宽高。请问这种情况正常么?是属于不同机型渲染问题么?还是我使用上有问题
2020-05-10