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

Is it possible to allow a Javascript frontend to stream a video without downloading the full file? #10183

Closed
6 of 9 tasks
MichelJonkman opened this issue Jun 14, 2024 · 2 comments
Labels
question Question

Comments

@MichelJonkman
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Please make sure the question is worded well enough to be understood

I want to create a music player with Youtube support but I can't figure out if it's possible. I need to be able to seek in the video as well.

I was thinking about using Tauri, meaning I'll be using a Rust backend and JavaScript/HTML frontend. An alternative would be a PWA but the Youtube stream would probably have to run through a proxy.

Is it possible to use yt-dlp for this? If so, how would I go about doing this?

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

No response

@MichelJonkman MichelJonkman added the question Question label Jun 14, 2024
@rozari0
Copy link
Contributor

rozari0 commented Jun 16, 2024

Yep, pass the stream url to your fronted. (you can get steam url by yt-dlp -g <url>)

@MichelJonkman
Copy link
Author

Alright, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question
Projects
None yet
Development

No branches or pull requests

2 participants