Changing width and height not changing player size. Also not resizing when browser size changes.

Video: 7.x-2.6
Video.js: 7.x-2.2
Video.js library extracted from video-js-3.2.0.zip.

Comments

mrynearson’s picture

Status: Active » Closed (works as designed)
DrupalDan’s picture

Version: 7.x-2.2 » 7.x-2.1
Category: bug » support
Status: Closed (works as designed) » Active

I got the same problem; I use 7.x-2.1 though. I tried to change the width from 640 to 600 at admin/config/media/videojs as the default one is wider than my content area, but it seems that it's not working.

Jorrit’s picture

Are you using the Video.js player to display videos from the Video module? In that case, the video module determines the width and height. Look in your field display settings to set the dimensions.

DrupalDan’s picture

Hi Jorrit, it's good to hear from you again. Yes, I change the field display settings and it works as expected. So if that's controlled by the video module, what's the dimension settings at video.js for? And before I made it work with your assistance I also did some experiment on Output video dimensions, you know, the one that shows up after the video is uploaded. I notice that the setting there doesn't change if I check

"Use preset dimensions for video conversion.
Override the user selected dimensions with the value from the presets (recommended). "

This makes sense but the preset settings for "Dimensions" at admin/config/media/video/presets/preset, the one with "Select the desired widthxheight of the video player. You can add your own dimensions from Video metadata settings." seems not working. I mean, I changed it into something like 176*144 but nothing happens. So can I understand this as the field display settings you mention overrides everything related to the dimensions?

Thanks again for your help!

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)

It is also possible to use the Video.js module to display normal File fields and Link fields as a video, in which case that setting is used. It should also be configurable per field, but I haven't got around to changing that since I took over the module.

Regarding the dimensions: it should work such that the preset dimensions override all other settings. If this doesn't work for you, try 7.x-2.x-dev.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Per-field dimension settings are now supported.