video.js

源码地址:

https://github.com/videojs/video.js/

 

设定宽高比

https://docs.videojs.com/tutorial-layout.html

// make a vertical video
var player = videojs('vid1', {
  aspectRatio: '9:16'
});

 

            x-webkit-airplay="allow" 
            x5-playsinline="" 
            x5-video-player-type="h5-page"  //微信官方事例安卓内小窗播放     x5-video-player-type="h5"  不行
            controls="controls"
            webkit-playsinline="true" 
            playsinline="true" 
            id="my-video"
            autoplay="true"
            class="video-js vjs-big-play-centered"
            preload="auto"
            poster="@Model.Room.Logo"
            data-setup='{}'>
        
            
        
 
官方事例地址:
https://tencentx5.github.io/x5/video_page_samelayer.htm
 

你可能感兴趣的:(video.js)