Embed give me error status 400

Hi, why my embed give me this error?

{"errors":{"parent":["parent query string value contains invalid domain name"]},"title":"One or more validation errors occurred.","status":400}

My embed is this:

                            <script src="https://embed.twitch.tv/embed/v1.js"></script>
                            <script type="text/javascript">
                                var embed = new Twitch.Embed("twitch-embed", {
                                    width: 500,
                                    height: 400,
                                    channel: "lavitasecondopizzi",
                                    layout: "video",
                                    autoplay: false
                                });

                                  
                                embed.addEventListener(Twitch.Embed.VIDEO_READY, () => {
                                    var player = embed.getPlayer();
                                    player.play();
                                });
                            </script>

You are running into the issue mentioned here: Twitch Embedded Player Migration - Timeline Update

This is due to a change in modern browsers, but you’ll be able to get around it by following the advice here: Twitch Embedded Player Updates in 2020

if my site is in an vps and no have a domain name but only ip it work too?

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