Is it possible to customize YouTube thumbnail resolution in Moonlink.js?
I have a question about the track.artworkUrl property. Currently it returns the YouTube thumbnail at the mqdefault.jpg resolution (320Ć180). In some use cases Iād like to display a higher-quality image, for example:
hqdefault.jpg (480Ć360)
sddefault.jpg (640Ć480)
maxresdefault.jpg (up to full resolution)
Is there an existing option or configuration in Moonlink.js to request a different thumbnail resolution? If not, do you have any recommended approach or helper function to easily convert the URL from mqdefault.jpg to one of the higher-quality variants?
Solution:Jump to solution
just replace those from something like mqdefault.jpg to maxresdefault.jpg (Or any Other) and perform fetch requests to confirm that the requested Thumbnail size exists.
2 Replies
Solution
just replace those from something like mqdefault.jpg to maxresdefault.jpg (Or any Other) and perform fetch requests to confirm that the requested Thumbnail size exists.
oh... okay š ! thanks for reply