Interactive embed - player.twitch.tv

Hi,

I copied the code for the interactive twitch player. And as it is explained in the docs it should be possible to interact with the player (https://dev.twitch.tv/docs/embed/video-and-clips#interactive-frames-for-live-streams-and-vods)

Here is my exact code:

<div id="twitch-feed"></div>
<script src= "https://player.twitch.tv/js/embed/v1.js"></script>
<script type="text/javascript">
var options = {
width: "100%",
height: 220,
channel: "ninja",
controls: false,
allowfullscreen: false
};
var player = new Twitch.Player("twitch-feed", options);
player.pause();
</script>

The reason why I dont use the embed.twitch.tv/embed/v1.js is because I need the controllers to be hidden and that can not be done from that library.

What shall I do to embed an interactive stream by javascript and still keep the controllers hidden?

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