Interactive Player Embed Stopped Working

Hello, I’ve moved my website integration to the new API, and requests are working fine, however I am no longer able to embed twitch player. I’ve tried the code provided in the doc, namely

<script src= "http://player.twitch.tv/js/embed/v1.js"></script>
<div id="SamplePlayerDivID"></div>
<script type="text/javascript">
	var options = {
	width: 854,
	height: 480,
	channel: "dallas",
};
var player = new Twitch.Player("SamplePlayerDivID", options);
player.setVolume(0.5);
</script>

But what I see on my webpage is a 404 error should be. Embedding using an iframe works, but is not what I’m looking for. The console displays this weird URL http://www.jenmaarai.com/:///?allowfullscreen&channel=dallas (jenmaarai being my website). Is this kind of embed no longer supported? Thank you.

Interactive player embed is not working for me either. Getting the same errors in all browsers:
failed to resolve properties

This is the currently supported embed: https://dev.twitch.tv/docs/embed (The same as you’re using)

Here’s an example of it definitely working:

https://codepen.io/Alca/pen/veerQd

The embed code is hidden away in the Pen settings. I’m just using the https:// version.

https://player.twitch.tv/js/embed/v1.js

You are right Alca, it does work but only when using the https version, which makes the document outdated. This however fixes my problem, thank you.

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