Got it. I didn’t see the script reference there. Thanks.
And last question: can I use the play() method immediately without any issues after the player instantiation?
<script src= "http://player.twitch.tv/js/embed/v1.js"></script>
<div id="<player div ID>"></div>
<script type="text/javascript">
var options = {
width: <width>,
height: <height>,
channel: "<channel ID>",
video: "<video ID>",
collection: "<collection ID>",
};
var player = new Twitch.Player("<player div ID>", options);
player.play();
I’ve tried without success. My test is on this Fiddle: Edit fiddle - JSFiddle - Code Playground
If there’s a way, any hints will be appreciated it. Thanks
