在微信浏览器中使用Video 全屏/小窗口
<style>
html, body {
-ms-touch-action: none;
background: #020b1d;
padding: 0;
border: 0;
margin: 0;
height: 100%;
position: relative;
overflow: hidden;
}
video{
object-fit: cover;
position: absolute;
top: 0;
left: 0;
display: none;
width: 100%;
z-index: 999;
}
</style>
<video id="P5video" preload="auto" poster="" style=""
playsinline="true"
webkit-playsinline="true"
x5-video-player-type="h5"
x-video-player-fullscreen="true"
x-webkit-airplay="true" src=".."></video>
<script>
var H5video = document.createElement('myvideo')
H5video.setAttribute('playsinline', true)
H5video.setAttribute('webkit-playsinline', true)
H5video.setAttribute('x5-video-player-type', 'h5')
</script>