LIVE 流式視訊播放器

基本實施:

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

隱藏控制元件:

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