Add local media, the video can't fill the entire container?

Add local media, the video can’t fill the entire container?

Hi @dichen,

seems like your videos aspect ratio is 1/1 ?
The .bricks-video-wrapper is designed for 16/9 videos, because that’s what most videos normally are - so this is not a bug, but a default setting.

You can overwrite this with custom css:

root .bricks-video-wrapper {
  aspect-ratio: 1/1;
  /* Video Height divided by Video Width * 100 = padding-top in percent */
  padding-top: 100%;
}

Btw., did you got your 404 working?

Regards,
timmse

404 I have set to automatically jump to the homepage.

I have set hidden controls for the video, but it still pauses when the mouse clicks on the video screen. How can I block the operation of the mouse click?

Sorry, i have no idea.

I think: When setting the video loop, auto-play, and hide controls, it should not allow the mouse to click on the video screen to control the playback and pause of the video.

Perfectly solve my needs!
Add one more line of code: pointer-events: none;

.bricks-video-wrapper {
  aspect-ratio: 1/1;
  /* Video Height divided by Video Width * 100 = padding-top in percent */
	padding-top: 100%;
	pointer-events: none;
}
1 Like