# Twitch Embed API replaces iframe

**URL:** <https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743>\
**Category:** API\
**Created:** [June 17, 2017, 4:01pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743 "2017-06-17T16:01:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jreynoldsdev](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/jreynoldsdev/32/2910_2.png) [@Jreynoldsdev](https://staging-discuss.dev.twitch.com/u/Jreynoldsdev)\
**Post date:** [June 17, 2017, 4:01pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743/1 "2017-06-17T16:01:33Z")

</div>

When embedding a clip into an iframe the API will destroy and rerender that iframe. This makes it not possible to use with frameworks like ReactJS that maintain a virtual DOM. Is there a way to make the embed API use the existing iframe?

---

<div class="post-metadata">

**Author:** ![DallasNChains](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/dallasnchains/32/1608_2.png) [@DallasNChains](https://staging-discuss.dev.twitch.com/u/DallasNChains)\
**Post date:** [June 19, 2017, 3:21pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743/2 "2017-06-19T15:21:59Z")

</div>

This is the Clips embed in particular, correct? Not the video embed? They’re different embeds, which is why I ask.

---

<div class="post-metadata">

**Author:** ![Jreynoldsdev](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/jreynoldsdev/32/2910_2.png) [@Jreynoldsdev](https://staging-discuss.dev.twitch.com/u/Jreynoldsdev)\
**Post date:** [June 19, 2017, 11:06pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743/3 "2017-06-19T23:06:58Z")

</div>

This will be for the Live Stream and VOD embed API, located at [http://player.twitch.tv/js/embed/v1.js](http://player.twitch.tv/js/embed/v1.js).

---

<div class="post-metadata">

**Author:** ![system](https://d2spem0quai2ol.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://staging-discuss.dev.twitch.com/u/system)\
**Post date:** [July 19, 2017, 11:09pm UTC](https://staging-discuss.dev.twitch.com/t/twitch-embed-api-replaces-iframe/10743/4 "2017-07-19T23:09:45Z")

</div>

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