# Fullscreen and muted not working in embed code

**URL:** <https://discuss.dev.twitch.com/t/fullscreen-and-muted-not-working-in-embed-code/27821>\
**Category:** API\
**Created:** [August 21, 2020, 2:21am UTC](https://discuss.dev.twitch.com/t/fullscreen-and-muted-not-working-in-embed-code/27821 "2020-08-21T02:21:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caio\_Moraes](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/caio_moraes/32/10034_2.png) [@Caio\_Moraes](https://discuss.dev.twitch.com/u/Caio_Moraes)\
**Post date:** [August 21, 2020, 2:21am UTC](https://discuss.dev.twitch.com/t/fullscreen-and-muted-not-working-in-embed-code/27821/1 "2020-08-21T02:21:02Z")

</div>

Hi guys! I’m embed a twitch stream in my google site and wix too. But I have a problem, the fullscreen button don’t work, and the stream get started muted. Bellow is my code, and the website for reference.

Thanks in advance!

```
<div id="twitch-embed"></div>
<script src="https://embed.twitch.tv/embed/v1.js"></script>
<script type="text/javascript">
    var embed = new Twitch.Embed("twitch-embed", {
    	width: "100%",
        height: "100%",
        channel: "caioms001",
        layout: "video",
        allowfullscreen: true,
        parent: ['sites.google.com', 'www.gstatic.com', 'cglightfiles.com.br', 'www.cglightfiles.com.br', window.location.host]
    });
    embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
        var player = embed.getPlayer();
        player.setVolume(0.2);
  		player.setMuted(false);
  		player.setQuality("chunked");
    });	
</script>

```

Website: [Webiste!](https://www.cglightfiles.com.br/test)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 21, 2020, 2:30am UTC](https://discuss.dev.twitch.com/t/fullscreen-and-muted-not-working-in-embed-code/27821/2 "2020-08-21T02:30:56Z")

</div>

> [@Caio\_Moraes](#):
>
> and the stream get started muted

Nothing you can do about this. AutoPlay video is blocked by browsers, until you have a “good interaction score” with your website, which is confused by google sites and wix usage, due to multiple iFrames…

So that is a can’t fix due to browers technology literally preventing it

> [@Caio\_Moraes](#):
>
> the fullscreen button don’t work

Owing to browser permissions each iFrame in the stack requires the fullscreen permission which might not be granted and that is a thing you can’t change on Google Sites or Wix.

You’ve allowed it in the video/embed set, but each iFrame in stack might not allow/grant the permission.

---

<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 20, 2020, 2:31am UTC](https://discuss.dev.twitch.com/t/fullscreen-and-muted-not-working-in-embed-code/27821/3 "2020-09-20T02:31:01Z")

</div>

Closed on September 20, 2020, 2:31am UTC

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