i put this script but my web site now run with lag…
$stream_name = ‘twitch.tv’; /Stream name /
$orginal_width = 400; / Orginale Breite vom Playereinbindung /
$orginal_height = 300; / Orginale Höhe vom Playereinbindung /
$width = get_streamwidth();
$height = ($width100)/$orginal_width;
$height = ($height$orginal_height)/100;
$live = false;
$views_stream = 0;
$embed = ‘’;
if(!$height OR !$width) { $width = $orginal_width; $height = $orginal_height; }
if(isset($id)) {
$file = 'https://api.twitch.tv/kraken/streams/'.$id;
$twitch_json = json_decode(@file_get_contents($file));
if ($twitch_json && $twitch_json->stream) {
$live_stream = 1;
$views_stream = $twitch_json->stream->viewers;
$embed = '<object type="application/x-shockwave-flash" height="'.$height.'" width="'.$width.'" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel='.$id.'" bgcolor="#000000"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" /><param name="flashvars" value="start_volume=25&hostname=www.twitch.tv&channel='.$id.'&auto_play=true" /></object>';
}
}
someone can help me?