Hi!
I've created a website for my enterprise.
After last views and toolset update videos in mp4 won't appears as before (uses same width and height). I give you an example: hidden link
Can you take a look?
Hi, I'll need some more information:
- How is this video added to your Layout? Share any shortcodes that are in use.
- What did it look like before, can you describe how it should look now? I see letterboxing around the video but I'm not clear what it should look like.
The video is an .mp4 uploaded via wordpress media. The shortcode is: [types field='video-ppal' loop='on' autoplay='on' preload='on'][/types].
Previosly, it doesn't appears this giant black background up and bottom the video. It just appears the video without anything, as you can see in the photo.
The Types video field shortcode is essentially a wrapper for WordPress's video shortcode, which is not responsive by design. It requires predefined height and width values:
https://codex.wordpress.org/Video_Shortcode
height
(integer) (required) Defines height of the media. Value is automatically detected on file upload.
Default: [Media file height]
width
(integer) (required) Defines width of the media. Value is automatically detected on file upload. Note that the theme's content_width sets the maximum width.
Default: [Media file width]
Since the width of your video changes as the screen size changes, a static height number would have to be updated constantly to maintain the video proportions and prevent letterboxing. That would require JavaScript that isn't included with Types or Views. As a test, please use the standard WordPress video shortcode instead of the Types field shortcode and observe the results. I think you will find that the video includes similar letterboxing. Can you try this test and provide some screenshots showing the results at different screen sizes?
After some css changes and using standard WordPress video shortcode I create a responsive video as I have it before wordpress and types update.
Thanks for all!!!!!