Subject of the issue
On mobile, the player size is sometimes incorrect. This leads to the player being unusable.
The .vimeo__video div is sometimes getting a padding-top value of 6.25% when it should be more like 56.25%. When this issue occurs, videoWidth is like 3840 and videoHeight is like 240 instead of something like 2160. 240 seems like a default/fallback value?
|
async setupResponsiveSizing() { |
|
const videoWidth = await this.player.getVideoWidth(); |
|
const videoHeight = await this.player.getVideoHeight(); |
|
this.$el.css('padding-top', `${videoHeight / videoWidth * 100}%`); |
The adapt-vimeo plugin uses v2.26.0 of https://github.com/vimeo/player.js. The latest version on GitHub is v2.29.3.
Your environment
adapt-vimeo 3.4.0
- FW 5.50.0
- Mac Firefox 141.0.2
Steps to reproduce
- Add the Vimeo component example from example.json.
- View the course on a phone or in responsive mode in a browser (ex. 366 x 730). You may need to reload the page several times.
Expected behaviour
Video player is an appropriate size.
Actual behaviour
Video player is too small to use.

Subject of the issue
On mobile, the player size is sometimes incorrect. This leads to the player being unusable.
The
.vimeo__videodiv is sometimes getting a padding-top value of 6.25% when it should be more like 56.25%. When this issue occurs,videoWidthis like 3840 andvideoHeightis like 240 instead of something like 2160. 240 seems like a default/fallback value?adapt-vimeo/js/VimeoView.js
Lines 47 to 50 in a811ce5
The
adapt-vimeoplugin uses v2.26.0 of https://github.com/vimeo/player.js. The latest version on GitHub is v2.29.3.Your environment
adapt-vimeo3.4.0Steps to reproduce
Expected behaviour
Video player is an appropriate size.
Actual behaviour
Video player is too small to use.