# Is it possible to stream a Twitch video to a C++ application?

**URL:** <https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846>\
**Category:** API\
**Created:** [July 12, 2016, 3:01pm UTC](https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846 "2016-07-12T15:01:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyleo](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tyleo/32/1899_2.png) [@tyleo](https://discuss.dev.twitch.com/u/tyleo)\
**Post date:** [July 12, 2016, 3:01pm UTC](https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846/1 "2016-07-12T15:01:49Z")

</div>

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

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

If extracting the stream from the URL is the only way to do this than does anyone know if that is against Twitch’s terms of service?

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

---

<div class="post-metadata">

**Author:** ![tournymasterbotCurse](https://avatars.discourse-cdn.com/v4/letter/t/dfb087/32.png) [@tournymasterbotCurse](https://discuss.dev.twitch.com/u/tournymasterbotCurse)\
**Post date:** [July 12, 2016, 3:06pm UTC](https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846/2 "2016-07-12T15:06:50Z")

</div>

No. You must use the embedded twitch player to comply with twitch TOS.

You can use a c++ application to push raw video to the ingest servers though, this is basically how applications like obs and xsplit work.

---

<div class="post-metadata">

**Author:** ![tyleo](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/tyleo/32/1899_2.png) [@tyleo](https://discuss.dev.twitch.com/u/tyleo)\
**Post date:** [July 12, 2016, 3:09pm UTC](https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846/3 "2016-07-12T15:09:34Z")

</div>

Thank you for the quick response!

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [August 11, 2016, 3:09pm UTC](https://discuss.dev.twitch.com/t/is-it-possible-to-stream-a-twitch-video-to-a-c-application/6846/4 "2016-08-11T15:09:44Z")

</div>

Closed on August 11, 2016, 3:09pm UTC

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