win universal app - How to get video file stream from embed url in c# -


i tried below code video not playing.

var httpclient = new httpclient(); var data = await httpclient.getbytearrayasync(new uri("http://www.youtube.com/embed/irfe-skop4i")); var file = await knownfolders.musiclibrary.createfileasync("myfile.mp4", creationcollisionoption.replaceexisting); var targetstream = await file.openasync(fileaccessmode.readwrite); await targetstream.asstreamforwrite().writeasync(data, 0, data.length); await targetstream.flushasync(); targetstream.dispose(); 

any 1 please me how save download..thankyou

i agree @x..., if want download video youtube, need install youtubeextractor.

but same code can't download different website videos.

i tested code video download uri "http://video.ch9.ms/ch9/9b56/4f2d0b4d-ea37-4525-8833-128ad6e69b56/uwp01seriesintro.mp4", works fine.

actually want download openload.co/embed/ehmdelqnx94 video there possibility..

i took @ video, find web named openload, , web service share free without limits, need use develop api of it. downloading, can refer download apis here.

the video url appears after click on play button, there way handle click event httpclient or other clients

from official document of web, found this:

get download link using download ticket.

you can refer download link.

update:

i tried openload api, when download link showing captcha error, can please me this

i reproduced problem, because source download not public source, needed authentication. when download ticket download, although api said api-login , api-key not required, need use full path https://api.openload.co/1/file/dlticket?file={file}&login={login}&key={key} authenticated ticket, can use ticket download url.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -