详细问题描述
[内容]
在安卓APP中嵌入乐视云点播视频播放,在部分手机型号(红米note,三星pad,vivo个别型号)下播放视频时会出现 有声音无图像的情况
重现步骤
[步骤]嵌入乐视云点播,点击播放视频
[结果]视频有声音无图像
[期望]视频正常播放
运行环境
[系统版本]安卓6.0
[浏览器版本]
[IDE版本]HBuilder 7.6.5.201612301621
[mui版本]7.6.3.201612161809
附件
[代码片段]<script id="autoJs0737008cf4" type="text/javascript">
var pNode = document.getElementById("autoJs0737008cf4").parentNode,
pt, pb, dWidth = pNode.clientWidth,
pHeight = pNode.clientHeight,
dHeight = ReCallHeight(pHeight, dWidth, pNode);
function ReCallHeight(h, w, a) {
try {
pt = window.getComputedStyle(a, null).paddingTop;
pb = window.getComputedStyle(a, null).paddingBottom;
} catch(e) {
pt = a.currentStyle.paddingTop;
pb = a.currentStyle.paddingBottom;
}
h = h - parseInt(pt) - parseInt(pb);
if(h && (typeof h == "number") && h == h && h > 0) {
return h;
} else {
var ua = navigator.userAgent.toLowerCase();
var ipad = ua.match(/(iPad).*OS\s([\d_]+)/),
isIphone = !ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/),
isAndroid = ua.match(/(Android)\s+([\d.]+)/),
isMobile = isIphone || isAndroid;
if(isMobile) {
return w * 9 / 16;
} else {
return(w * 9 / 16) + 36;
}
}
};
var player = new CloudVodPlayer();
[安装包]
见附件 以及截图
联系方式
[QQ]996769872
[电话]15865259575
1 个回复
云钦 - 学习中
只能说可能是bug,其实不是bug,是因为没开启硬件加速的原因吧。
代码怎么复制的,不会使用编辑器吗?
看着真累。