Skip to content

Commit

Permalink
fix(FEC-14071): thumbnail requests append height, width, ks too many …
Browse files Browse the repository at this point in the history
…times (#67)

### Description of the Changes

align related with changes in `updateKalturaPoster` API.

**related PRs:**
kaltura/playkit-js-providers#243
kaltura/kaltura-player-js#830

### CheckLists

- [ ] changes have been done against master branch, and PR does not
conflict
- [ ] new unit / functional tests have been added (whenever applicable)
- [ ] test are passing in local environment
- [ ] Travis tests are passing (or test results are not worse than on
master branch :))
- [ ] Docs have been updated
  • Loading branch information
lianbenjamin authored Aug 11, 2024
1 parent 3143c49 commit c5e3218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/image-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ImageService {
async getImageUrl(url: string): Promise<string | null> {
if (!url) return null;

const posterData = {poster: url};
const posterData = {poster: url, rawThumbnailUrl: url};
this.player.updateKalturaPoster(posterData, posterData, {width: MAX_WIDTH, height: MAX_HEIGHT});
if (await this.imageFound(posterData.poster)) {
return posterData.poster;
Expand Down

0 comments on commit c5e3218

Please sign in to comment.