Skip to content

Commit

Permalink
fix: use webp format instead of jpg, less bandwidth
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjha committed Dec 16, 2022
1 parent 5c27059 commit 6c54118
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/mux-player/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const getPosterURLFromPlaybackId = (
return;
}

return `https://image.${domain}/${playbackId}/thumbnail.jpg${toQuery({
return `https://image.${domain}/${playbackId}/thumbnail.webp{toQuery({
token,
time,
})}`;
Expand All @@ -66,6 +66,7 @@ export const getStoryboardURLFromPlaybackId = (

return `https://image.${domain}/${playbackId}/storyboard.vtt${toQuery({
token,
format: 'webp',
})}`;
};

Expand Down

0 comments on commit 6c54118

Please sign in to comment.