-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix data URI parsing when charset present
Data URIs can have additional parameters other than just the MIME type and encoding. While working on TTML fixes, I was debugging by inserting data URIs as TTML text tracks. But the data URI encoder I used was inserting a "charset" parameter into the URI, which was rejected by Shaka Player. This fixes the data URI parser to understand these extra parameters. While researching this fix, I also found that only the base64 encoding is specified for data URIs. So now only that specific parameter is supported as an encoding, and the UNKNOWN_DATA_URI_ENCODING error code has been retired. Change-Id: I7022529b0931e80a77a1120fc86c25b42e1fb3d9
- Loading branch information
1 parent
d9122a1
commit 5a03835
Showing
3 changed files
with
34 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters