在video标签上添加objectFit=“cover” 属性

  <video class="video"
		objectFit="cover"
		@fullscreenchange="playerFullScreen"
	    			 x5-video-player-type="h5"
	    			 x5-video-player-fullscreen="true"
	    			 x5-playsinline
	    			 webkit-playsinline playsinline
	    			 preload="auto"
					 muted="muted"
	    			 :poster="poster"
	    			 :playOrPause="playOrPause"
	    			 x-webkit-airplay="allow"
	    			 @click="pauseVideo"
	    			 @ended="onPlayerEnded($event)"
					 controls="controls">
					<source :src="url" type="video/mp4"></source>
					 
	    </video>

在这里插入图片描述

Logo

一站式 AI 云服务平台

更多推荐