-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
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?
Lines 47 to 50 in a811ce5
| 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-vimeo3.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.

Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New