Improve codec checking by scanning list of available codecs supported
In order to determine what codecs are supported by a specified key system, the current code attempts to create a decoder for each codec to determine if it is supported. Improve this by simply querying MediaCodecList if it is available. Note that there may be multiple codecs supporting the specified mime_type, so continue to the next one if the current one doesn't have FEATURE_SecurePlayback supported as needed. This reapplies the code removed in commit fde644c1, along with some additional changes (check following codecs if this one can't handle it). Bug: 846120 Test: EncryptedMedia content_browsertests pass Change-Id: I8a0f79e7a36d203a179c490de3c262add55cffc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1729804 Commit-Queue: John Rummell <jrummell@chromium.org> Reviewed-by:Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#683777}
Showing
Please register or sign in to comment