Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use on website in js player ? #18705

Closed
DonCorleone9 opened this issue Dec 31, 2018 · 3 comments
Closed

Use on website in js player ? #18705

DonCorleone9 opened this issue Dec 31, 2018 · 3 comments

Comments

@DonCorleone9
Copy link

@DonCorleone9 DonCorleone9 commented Dec 31, 2018

Is it possible to use this repo's code and adapt it to make a video streaming site.

Let's say that i have uploaded my videos on YT.. Then can i use youtube-dl script to output the "https://r1---sn-" type of download link as the source of my JS video player on my website.

Like for example if you click this link: http://freemedtube.com/play.php?id=eUVxcFlQMjdFR1llRTRRNjBCRTFsZz09

Then it will open up something like this: https://r3---sn-cvh7knek.googlevideo.com/videoplayback?c=WEB&ei=AVoqXOK6Eseghwb3xorQAg&lmt=1538815325557977&expire=1546301025&itag=18&ip=54.196.168.61&source=youtube&signature=5AA9E61E95DBD995AD037625D7295CF6B9A60E4E.524DE0E531A9D8E1BD80F7F6E9DA58498E2EE382&mime=video%2Fmp4&fvip=3&dur=1427.284&pl=20&id=o-AN9pdAv7Oy14vmyugdbtp5-pDMMOFWjxzZfYZ_K65Q3w&ratebypass=yes&sparams=clen,dur,ei,expire,gir,id,ip,ipbits,ipbypass,itag,lmt,mime,mip,mm,mn,ms,mv,pl,ratebypass,requiressl,source&gir=yes&requiressl=yes&key=cms1&clen=57807231&txp=2211222&ipbits=0&redirect_counter=1&rm=sn-vgqeer7s&fexp=23763603&req_id=a3b08176f33aa3ee&cms_redirect=yes&ipbypass=yes&mip=122.170.191.206&mm=31&mn=sn-cvh7knek&ms=au&mt=1546279329&mv=m

They are using the exact mechanism of youtube-dl on site freemedtube.com to stream videos hosted on Youtube on their own website by outputting the download link to a JS player.

Please let me know if this is possible ? I guess with python + flask (for webdev) it maybe possible.. Please can someone pitch in.. how to do this ?
Thanks.

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 31, 2018

They are using the exact mechanism of youtube-dl on site freemedtube.com to stream videos hosted on Youtube on their own website by outputting the download link to a JS player.

If they do then it's obviously possible.

@dstftw dstftw closed this Dec 31, 2018
@DonCorleone9
Copy link
Author

@DonCorleone9 DonCorleone9 commented Dec 31, 2018

Your responses are rude and non-helpful..
Yes it is obviously possible if someone else does it.. I was asking people how to do so using Flask and Python..

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Dec 31, 2018

This is neither general python programming forum nor flask support board. Read doc on flask.

@ytdl-org ytdl-org locked and limited conversation to collaborators Dec 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.