How to add Download Button on APICodes scripts?

Step 1: Download icon here: download.svg. Then upload into assets/images folder.

Step 2: Just open index.php or embed.php (if you use CPanel). Then, scroll down and add this code above setupError like this.

player.addButton(
	"./assets/images/download.svg",
	"Download Video",
	function () {
		var win = window.open(player.getPlaylistItem()["file"],"_blank");
		win.focus();
	},
	"download"
);

That’s all. Thank you for reading!