-
Notifications
You must be signed in to change notification settings - Fork 133
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
Make hardware acceleration configurable. #118
Conversation
Earlier drafts wrongly assumed that support could be determined synchronously.This remedies that by introducing a new async API to check support prior to calling configure(). Fixes #98. See additional discussion there.
Similar to MediaCapabilities and EME specs, the isConfigSupported() promise will now include the configuration who's support is described. This helps feature detect when parts of the input configuration dictionary are ignored (when the UA implementation lags behind the specification).
Add AvcEncoderConfig to specify optional annex-b format.
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.
In general, looks good. Maybe adding an informative note to explain the usefulness of this (it's not obvious), and I'm not sure about the name acceleration
, it doesn't mention "hardware" acceleration. Maybe simply hardwareAcceleration
?
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.
Maybe adding an informative note to explain the usefulness of this (it's not obvious)
Done
and I'm not sure about the name acceleration, it doesn't mention "hardware" acceleration. Maybe simply hardwareAcceleration ?
Done
Define static async isConfigSupported()
@padenot I'll go ahead with this merge and address any follow up feedback when you return. |
Fixes #75.
Preview | Diff