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

Wrapper for other languages #11691

Closed
devkhan opened this issue Jan 12, 2017 · 1 comment
Closed

Wrapper for other languages #11691

devkhan opened this issue Jan 12, 2017 · 1 comment

Comments

@devkhan
Copy link

@devkhan devkhan commented Jan 12, 2017

  • I've verified and I assure that I'm running youtube-dl 2017.01.10
  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

Description

Are there any (usable) binding to other languages of yt-dl, specifically C#?

I want to get buffered video, either by streaming directly or to a file, and use that in a C# application. Right now, the only option seems to run the CLI tool. Is there any other way?

Is this even a good enough approach? The end goal here is to be able to play the stream or file in the app. So, calling the CLI with so many options can get messy(needs to be x-platform), a nice and clean API (may be a DLL) would be nice. If one doesn't exists, I'm eager to take up the initiative if someone can guide through the workings of yt-dl.

PS: There's this, but outdated. 😞

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Jan 12, 2017

Out of the scope for a pure Python project. Of course you can write one or improving existing projects and advertise your results here.

In general, two approach for writing a wrapper:

  1. Use the CLI interface
  2. Use the Python API with C#-Python bridge. I've heard IronPython but never tried it

The first approach is easier to write, while the second approach provides more flexibility.

@yan12125 yan12125 closed this Jan 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.