plyr-react icon indicating copy to clipboard operation
plyr-react copied to clipboard

How to override download button link?

Open alexandrsek opened this issue 3 years ago • 1 comments

Hi! I have multiple video qualities, but when I click on download button I need to download an original file from another server. How this can be accomplished?

alexandrsek avatar Aug 04 '22 15:08 alexandrsek

Hey @alexandrsek, Could you follow url guide from plyr documentation

If you wish to override any API URLs then you can do so here. You can also set a custom download URL for the download button.

https://github.com/sampotts/plyr

realamirhe avatar Aug 05 '22 05:08 realamirhe

@realamirhe Hi, Th plyr doc says to attach the download url to the plyr Options urls option. which is missing in ply-react

If you wish to override any API URLs then you can do so here. You can also set a custom download URL for the download button.

Shouldn't there be a urls option?

towfiqi avatar Jul 17 '23 16:07 towfiqi

@towfiqi think you are right, might need to follow up the issue or open a PR for plyr team You can find the Option type here

realamirhe avatar Jul 18 '23 13:07 realamirhe

@realamirhe Thanks for the reply :)

I also see you have written the custom hls player. I am having few issues with implementing it. I have described them in issue #688 Can you kindly take a look if you have some spare time? Regards

towfiqi avatar Jul 18 '23 13:07 towfiqi