Is there a way to set video width and height like the one in the videojs embed builder?



jasondecamp’s picture


I'm looking for a solution that works on a per video basis, not a global height and width setting (which is located in the module configuration area).

Jorrit’s picture

Version:7.x-1.3» 7.x-1.x-dev
Category:support» feature
Status:Active» Postponed

Maybe in a later version.

mogtofu33’s picture

Version:7.x-1.x-dev» 7.x-2.2
Component:Miscellaneous» Code
Status:Postponed» Patch (to be ported)
new2.56 KB


Thanks for this module, i need to set different width and height by field for different content type, so here is a patch to add this feature.


michael.k’s picture

@mogtofu33 you appear to be using 2.40 aspect ratio in your patch. I'm curious about your source format. Are you cropping from HD and then outputting a new file for upload, or are you transcoding directly from your source files?

mogtofu33’s picture

I just use default values already set by videojs in admin settings.
Currently i am not using this module in production, i will probably have some user feedback when website will be launched...

michael.k’s picture

I see, thanks for the clarification.

@Jorrit then I'd suggest using a default value of 360 (instead of 264) for 'videojs_height' in and

Jorrit’s picture

Status:Patch (to be ported)» Fixed

I have changed the default resolution and committed this patch. I have changed the patch such that it is possible to leave the field-specific form empty and get the default values. I also added some form validation. I hope you like the changes.

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.