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

Add options for download links #225

Closed
wants to merge 2 commits into from

Conversation

episodeiv
Copy link

This adds support for two new options for download links (.jp-playlist-item-free), namely a prefix that is added before the link (downloadPrefix) and the ability to disable the "force right click" handler (downloadForceRightClick).

I use this to redirect the links to a server-side script that changes a few headers to allow left-click download of files.

Dennis Lichtenthäler added 2 commits July 11, 2014 20:07
@thepag
Copy link
Contributor

thepag commented Nov 20, 2014

This is generic notification that all users issuing pull requests must sign our CLA before we can consider merging with the jPlayer project.

I did take a brief look and there is a new HTML5 download attribute, that seems to do the job very well. While older browsers may need to continue with the right click to download, modern browsers will deal with it for us. So atm I do not plan to merge this PR. We appreciate the PR though 😄

@thepag
Copy link
Contributor

thepag commented Nov 21, 2014

Just reviewed... I will be going with the other solution that will work in HTML5 described in #254

The download attribute has reasonable support and this will only get better. It will also allow use to do something more like:

<a href="/media/hdgs-6bsf.mp3" download="the-scientist.mp3">The Scientist</a>

Thank you for the suggestion.

@thepag thepag closed this Nov 21, 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