I’m currently using a custom made html web source with a javascript embed in my stream. One part of the html web source is that I include a twitch embed but with the recent changes made to twitch embeds, this seems to no longer work. I’m not positive but I believe this is because you have to serve from https now, but my web source isn’t served from https(or http for that matter) because it’s just a local file.
Is there a way around this? I know I can theoretically spin up a simple web server that serves the html file from https but is that really the only way I can do an embed now? Here’s my code in case I’m doing something else wrong.
Console error:
var twitch = new Twitch.Embed('twitch-feed', {
width: "100%",
height: "100%",
channel: raidTarget,
parent: ['feardragon.com'],
layout: 'video' });
Thanks.
Dist
2
Embeds wont work when run from file://, you have to serve it from a webserver over HTTPS (or HTTP if you’re serving it from localhost or 127.0.0.1/8). Also setting the parent feardragon.com wont do anything to help, unless the browser is actually accessing that website and trying to load the embed there.
system
Closed
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.