# Grab Live Stream and Use Third Party program to Play it

**URL:** <https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010>\
**Category:** API\
**Created:** [August 11, 2015, 4:09pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010 "2015-08-11T16:09:50Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![FaTal\_Cubez](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FaTal\_Cubez](https://discuss.dev.twitch.com/u/FaTal_Cubez)\
**Post date:** [August 11, 2015, 4:09pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/1 "2015-08-11T16:09:50Z")

</div>

Is there anyway I can make a call to the api and grab a url or something that I can use to embed the video of the livestream directly into a program that I am making? Like in Java or something. Thanks!

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [August 11, 2015, 8:30pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/3 "2015-08-11T20:30:11Z")

</div>

If you can open a webview, you can use `http://www.twitch.tv/CHANNEL_NAME/embed` or `http://player.twitch.tv/?channel=CHANNEL_NAME` to embed a player.

---

<div class="post-metadata">

**Author:** ![FaTal\_Cubez](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FaTal\_Cubez](https://discuss.dev.twitch.com/u/FaTal_Cubez)\
**Post date:** [August 11, 2015, 9:00pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/4 "2015-08-11T21:00:37Z")

</div>

Would you know how to include this in non-web based program? Like a desktop client program?

---

<div class="post-metadata">

**Author:** ![Carl](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/carl/32/602_2.png) [@Carl](https://discuss.dev.twitch.com/u/Carl)\
**Post date:** [August 11, 2015, 9:04pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/5 "2015-08-11T21:04:56Z")

</div>

Some notes: the first URL is serving up the Flash player, the second one is the shiny new’ish HTML5 version.

> [@FaTal\_Cubez](#):
>
> Would you know how to include this in non-web based program? Like a desktop client program?

Depends on how you design said application. If you can embed either a Flash player or an HTML rendering engine (which is how we did ours, using Qt widgets), then it’s simply a matter of coding in some ‘put this object inside this widget.’ Either method, however, is really beyond the scope of these forums and should probably be addressed elsewhere.

---

<div class="post-metadata">

**Author:** ![FaTal\_Cubez](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FaTal\_Cubez](https://discuss.dev.twitch.com/u/FaTal_Cubez)\
**Post date:** [August 11, 2015, 9:24pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/6 "2015-08-11T21:24:09Z")

</div>

I’m currently using Java do design my program, do you know of any HTML rendering libraries for Java?

---

<div class="post-metadata">

**Author:** ![Carl](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/carl/32/602_2.png) [@Carl](https://discuss.dev.twitch.com/u/Carl)\
**Post date:** [August 11, 2015, 9:43pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/7 "2015-08-11T21:43:26Z")

</div>

> [@FaTal\_Cubez](#):
>
> I’m currently using Java do design my program, do you know of any HTML rendering libraries for Java?

No, unfortunately. I haven’t used Java in many, many years and now I’m a Golang and C++ kinda guy. Your best bet would be on a Java-specific forum.

---

<div class="post-metadata">

**Author:** ![FaTal\_Cubez](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FaTal\_Cubez](https://discuss.dev.twitch.com/u/FaTal_Cubez)\
**Post date:** [August 11, 2015, 9:46pm UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/8 "2015-08-11T21:46:50Z")

</div>

Yeah I posted a question on stackoverflow about it. Thanks! 😄

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [August 12, 2015, 12:42am UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/9 "2015-08-12T00:42:15Z")

</div>

1. They both serve flash players. One just has the newer UI, while the other hasn’t been updated to the new UI (it’s still in beta testing).

2. We do not support downloading our video streams in any way other than an iframe embed.

---

<div class="post-metadata">

**Author:** ![Carl](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/carl/32/602_2.png) [@Carl](https://discuss.dev.twitch.com/u/Carl)\
**Post date:** [August 12, 2015, 1:58am UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/10 "2015-08-12T01:58:14Z")

</div>

> [@Fugiman](#):
>
> 1. They both serve flash players. One just has the newer UI, while the other hasn’t been updated to the new UI (it’s still in beta testing).

Indeed. I should have been a little clearer on that. Good catch.

---

<div class="post-metadata">

**Author:** ![FaTal\_Cubez](https://avatars.discourse-cdn.com/v4/letter/f/f6c823/32.png) [@FaTal\_Cubez](https://discuss.dev.twitch.com/u/FaTal_Cubez)\
**Post date:** [August 12, 2015, 2:15am UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/11 "2015-08-12T02:15:48Z")

</div>

> [@Fugiman](#):
>
> [Twitch Error](http://player.twitch.tv/?channel=CHANNEL_NAME)

Is there any other video format I can grab for a stream? I can’t find a library in Java that can livestream a flash player and embed it in Swing. ☹

---

<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:** [September 11, 2015, 2:16am UTC](https://discuss.dev.twitch.com/t/grab-live-stream-and-use-third-party-program-to-play-it/3010/12 "2015-09-11T02:16:08Z")

</div>

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