Button to dowload video

hi everyone,
I’m trying to write a code to allow users to download a video with a button.
I found a procedure to get a great result for images:
https://www.youtube.com/watch?v=33HT0TY1r9E

I found this link for the API where it explains how to build a backend solution.
https://www.wix.com/velo/reference/wix-media-backend/mediamanager-obj/getfileurl

I have tried to fit them both, but I can’t get it to work.
The best I get is to open the video on another page or nothing happens.

Con you help me?
Thank You