使用videoPlayer做一个微信H5页面,其中在安卓微信端出现了如图中的问题,和苹果微信端差异很大。
根据网上的解决办法在脚本中写入
var video0 = document.getElementsByClassName(‘cocosVideo’)[0];
video0.style.zIndex = 5;
video0.setAttribute(“x5-video-player-type”, “h5”);
video0.setAttribute(“webkit-playsinline”, true);
video0.setAttribute(“x-webkit-airplay”, true);
video0.setAttribute(“x5-video-orientation”, “h5”);
video0.setAttribute(“x5-video-player-fullscreen”, true);
video0.setAttribute(“preload”,“auto”);
还是没有解决上述问题。
有没有大佬做过此类需求并解决了的,求支招!!!!

