全屏正常
全屏异常(只显示一半画面)
喜欢技术的前端 - QQ---445849201
你好,是用plus.screen.lockOrientation('landscape-primary'); 横屏的吗
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
html,
body {
padding: 0;
margin: 0;
}
.myVideo {
width: 100%;
}
</style>
</head>
<body>
<video class="myVideo" src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4" controls
poster="https://web-assets.dcloud.net.cn/unidoc/zh/poster.png"></video>
<script>
window.onload = function() {
document.addEventListener('plusready', function() {
//横屏
plus.screen.lockOrientation('landscape-primary');
}, false);
}
</script>
</body>
</html>