Skip to content

Commit

Permalink
fix(core): vimeo provider posters broken
Browse files Browse the repository at this point in the history
fixes #254
  • Loading branch information
mihar-22 committed Nov 21, 2021
1 parent 600818a commit f4e66e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/providers/vimeo/vimeo.tsx
Expand Up @@ -238,7 +238,7 @@ export class Vimeo implements MediaProvider<HTMLVmEmbedElement> {
.fetch(`https://vimeo.com/api/oembed.json?url=${this.embedSrc}`)
.then(response => response.json())
.then(data => {
const thumnailRegex = /vimeocdn\.com\/video\/([0-9]+)/;
const thumnailRegex = /vimeocdn.com\/video\/(.*)?_/;
const thumbnailId = data?.thumbnail_url?.match(thumnailRegex)[1];
const poster = `https://i.vimeocdn.com/video/${thumbnailId}_1920x1080.jpg`;
const info = { poster, width: data?.width, height: data?.height };
Expand Down

0 comments on commit f4e66e0

Please sign in to comment.