i am creating a cross platform mobile app in which i need to download the video from YouTube, when i pass the URL to download the video by file-transfer plugin, its downloading 40 to 50 KB only and showing complete status. so anyone who can help me to download the video from YouTube.
var fileTransfer = new FileTransfer();
var inputUri = encodeURI("https://www.youtube.com/watch?v=iQbBBOL2BBE");
var outputPath = videocreateFileSource1;
fileTransfer.download(
inputUri,
outputPath,
function (entry) {
},
function (error) {
alert("download error: source=" + error.source + ", target=" + error.target + ", error code=" + error.code);
});