Skip to content

Commit

Permalink
fix(player): vimeo video info can be undefined (#1062)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahmood-kn authored Dec 24, 2023
1 parent 2fff957 commit c8b871f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vidstack/src/providers/vimeo/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class VimeoProviderLoader implements MediaProviderLoader<VimeoProvider> {

const { videoId } = resolveVimeoVideoId(src.src);
if (videoId) {
return getVimeoVideoInfo(videoId, abort).then((info) => info.poster);
return getVimeoVideoInfo(videoId, abort).then((info) => (info ? info.poster : null));
}

return null;
Expand Down

0 comments on commit c8b871f

Please sign in to comment.