Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Download button


I am trying to add a download button by following the instructions on this page:
http://support.jwplayer.com/customer/portal/articles/1436999-example-adding-a-download-button

However, it does not appear to be working. Here is the page I am trying to add it to, and I do have the code already added. I'm not sure what I am doing wrong.

http://electra.nisd.net/vod/osd/Lynn/amy_carmella/index.php

Thanks in advance.

5 Community Answers

jherrieven

User  
1 rated :

That URL is 404ing...

frankieboy13

User  
0 rated :

Dang! Misspelled the name...

http://electra.nisd.net/vod/osd/Lynn/amy_caramella/index.php

Here's the correct one.

jherrieven

User  
0 rated :

You need to move the

jwplayer("myElement").addButton(...);

call to *after* the

jwplayer("myElement").setup(...);


FYI: The way things are at the moment, the supporting download code will work because you have the primary set to "html5" - and so it will try to download the MP4.

If you switch primary to "flash", and the RTMP stream is used, the download code will no longer work - you'll need to revisit the download code.

This should probably be made more robust regardless.

James Herrieven

frankieboy13

User  
0 rated :

Thank you so much. That did the trick.

Randy

JW Player Support Agent  
0 rated :

I am glad you are up and running with success. Thank you jherrieven

This question has received the maximum number of answers.