Tyler Wolf Leonhardt
Tyler Wolf Leonhardt

Reputation: 23

Is it possible to stream a YouTube video to a C++ application?

Is it possible to stream a YouTube video to a C++ application?

In particular, I am wondering whether YouTube provides an API for this besides extracting the stream from the URL like livestreamer does (http://docs.livestreamer.io/cli.html).

If extracting the stream from the URL is the only way to do this then does anyone know if that is against YouTube's terms of service?

My goal is to stream video to a C++ application without hosting it myself and render it with DirectX.

I am asking this here because youtube shut down their forums.

Upvotes: 2

Views: 3979

Answers (1)

simonwo
simonwo

Reputation: 3401

This is against the Terms of Service (section 4, paragraph C).

You agree not to access Content through any technology or means other than the video playback pages of the Service itself, the Embeddable Player, or other explicitly authorized means YouTube may designate.

There doesn't appear to be any API through which videos can be retrieved – as of writing, you must use an iframe to access YouTube videos, unless you're on Android.

Upvotes: 1

Related Questions