Skip to content
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

Browser-compatibility fix for data URI scheme. #239

Merged
merged 2 commits into from
Nov 20, 2014
Merged

Conversation

smidgen
Copy link
Contributor

@smidgen smidgen commented Sep 5, 2014

Since MSIE cuts off URL's validated in this way at 5120 bytes, data URI's should not be qualified this way. This fix allows you to use base64-encoded data URI's for audio data.

Since MSIE cuts off URL's validated in this way at 5120 bytes, data URI's should not be qualified this way. This bugfix allows you to use base64-encoded data URI's for audio data.
As of Chrome version 37, the Android bugfix appears to be no longer needed, and in fact breaks jPlayer. This is the fix.
@thepag
Copy link
Contributor

thepag commented Nov 20, 2014

This PR is polluted with a fix for android / chrome. That fix was implemented in another manner in 2.7.1 and while I accept that Chrome 37+ on Android may not need the fix applied at all, I tend to try and avoid the browser sniffer where possible.

BTW, the fix for android in 2.7.1 was to simply change the detection event from progress to loadeddata. Current Chrome no longer generates a progress event when the media is changed, while both android 2.3+ and current android generate the loadeddata event.

I should be able to merge in the commit hash for the data: url fix so that you get contributor credit.

Would you please sign the CLA so that I may merge this when I'm ready.

@thepag thepag merged commit f2c9f81 into jplayer:master Nov 20, 2014
thepag added a commit that referenced this pull request Nov 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants