Updating the Twitch Player

Is there a way to update the settings of an interactive twitch player? I’m using the interactive frame and I want to be able to switch the current channel to another channel based on different requests. Is this possible?

<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.setVolume(0.5);
</script>

The controls are all documented here: https://dev.twitch.tv/docs/v5/guides/embed-video#synchronous-playback-controls

Thanks! Didn’t notice it was part of the synchronous playback controls!

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