Help to automatically set text box text in web component and click on the button

I want to set youtube video ID in the web text box and automatically click on get api button and display the text in label , Its a trick to convert youtube video link to streamers link which is very useful

Please help me to slove this out

You Have To Use Webviwer Javascript

So please tell me js for it

What you want

Youtube Video download when you click on button in app

Or
When you Click on button In App then it should Get convert into api like the website do

I donot mean youtube video downloader , I want to make a youtube link to direct videos link

Ok Direct Downloadable Link

Like This

{
“links”: [
“https://r2---sn-p5qs7nek.googlevideo.com/videoplayback?expire=1635775336&ei=CJ9_YfrcFdar8wSMqJDoDw&ip=44.199.218.214&id=o-ABxHQp6WvZ5PJsJeqrgLXzkbA8HBpTrr8LDXzhbu3V0C&itag=18&source=youtube&requiressl=yes&mh=T6&mm=31%2C29&mn=sn-p5qs7nek%2Csn-p5qlsnzd&ms=au%2Crdu&mv=m&mvi=2&pl=17&initcwndbps=1156250&vprv=1&mime=video%2Fmp4&ns=pYwpz0SliFAhq2q44Qnj12sG&gir=yes&clen=13582694&ratebypass=yes&dur=156.061&lmt=1634898126323065&mt=1635753409&fvip=2&fexp=24001373%2C24007246&c=WEB&txp=5530434&n=k_o1qf9oZZ9x8JpP&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cratebypass%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRgIhAIyvVjQuPXgwTs-s-4Mb3yHFWDIqT3PUy1ezP48RnC3SAiEA9klBrO7G9lvNNWaSJlCWLq_FLZus3sNe9oYUCvsigec%3D&sig=Z111vfqkKHMLRwRApSgkF1UjGU-uXnOUyaA18eC9QIuJHIC47N4sVpywa3Dx7QNOCJ4otK1FQ3qCaJXVNThbyx_pKcgIARw8JQ0qOA”
]
}

Yes , it encodes using php

Try This

Use Function

To Set The Video Id

Js: document.getElementById("txt_url").value = "Youtube Video Url";

And Then To Get Api Click

document.getElementById(“get-api”).click();

Thank you , @Decoder_360

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.