How to download video file using ionic3

I used youtube video player to display video, now I want to download that youtube video link that is coming from API. how should I do that

Maybe that helps: Angular File Download with Progress | Nils Mehlhorn