- 当前 Bug 的表现(可附上截图)
开始播放视频时,有几率画面卡住几秒,只有声音,几秒后恢复
问题型号手机 安卓型号:
魅族MX6(安卓版本 7.1.1)
HUAWEI Mate9(Android 8.0.0)
- 预期表现
视频流畅
- 复现路径
视频地址https://cdn.11h5.com/roll2/mini/test_video/test.mp4
- 提供一个最简复现 Demo
调用接口的代码
let src = 'https://cdn.11h5.com/roll2/mini/test_video/test.mp4';
let info = wx.getSystemInfoSync();
let video = wx.createVideo({
x: 0,
y: 0,
width: info.windowWidth,
height: info.windowHeight,
autoplay: false,
controls: false,
showCenterPlayBtn: false,
enableProgressGesture: false,
src: src,
});
video.play();
video.onWaiting(()=>{
console.log("onWaiting");
});
video.onPlay(()=>{
console.log("开始播放!");
});
video.onError((msg)=>{
console.log("出错了!",msg);
});
可能是网速问题?
在同一wifi情况下测试的用不同设备