-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow WebP and AVIF image streams #3856
Conversation
lib/util/stream_utils.js
Outdated
* @const {string} | ||
* @private | ||
*/ | ||
shaka.util.StreamUtils.minAvifImage = 'data:image/avif;base64,AAAAIGZ0eXBhdm' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't believe how large this tiny AVIF image is. I played around in https://squoosh.app/ and only managed to shave it down from 311 bytes to 305. :-(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have not found a smaller one that works well :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to run additional tests in our lab to make sure things like new Image()
are available in all supported platforms. Unfortunately, I am unable to test Tizen right now. We're still in process of moving into a new building, and that device has not been mounted yet.
According to https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image should be supported in all browsers (since Chrome v1! ) |
Thanks for that! In any case, even if |
Fixes: #3845