-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 #3845
Comments
Do you know an API to verify image support? One possibility is to use something like this:
|
I don't know a way other than via a sample image, but also I hadn't looked into this extensively yet. At least for WebP, though, this seems to be the recommended approach (https://developers.google.com/speed/webp/faq#in_your_own_javascript). |
@joeyparrish do you know another method to check if a image mime type is supported? |
No, I don't know a better way. I would suggest this:
|
Have you read the FAQ and checked for duplicate open issues?
Yes
Is your feature request related to a problem? Please describe.
To allow better compression in thumbnail / image tracks, I would like to use WebP or AVIF instead of JPEG images (when supported in the browser). Currently, AVIF streams are always dropped, and WebP are kept only on WebOS, Tizen, Chromecast.
Describe the solution you'd like
Instead of white-listing supported image formats per platform,
StreamUtils::filterImageStreams_()
should check actual browser support.Describe alternatives you've considered
Alternatively, stream filtering could be made customizable, so that I may check browser support in the app itself.
The text was updated successfully, but these errors were encountered: