video.js视频高度自适应解决方法

video.js视频高度自适应解决方法

1.引入两个外部文件,或者下载到本地


2.设置video标签的class为“video-js vjs-default-skin vjs-big-play-centered vjs-16-9”

 

具体代码:




	
		
		
		详情
		
		
	

	
		
Video Player is loading.
Current Time 0:00
Duration -:-
Loaded: 0%
Stream Type LIVE
Remaining Time -:-
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected

      效果:

      video.js视频高度自适应解决方法_第1张图片

       

      你可能感兴趣的:(js)