@@ 598-617 (lines=20) @@ | ||
595 | * @return string |
|
596 | * @deprecated Will be replaced with Embed method |
|
597 | */ |
|
598 | public function embedStream($channel, $width = 620, $height = 378, $volume = 25) |
|
599 | { |
|
600 | return '<object type="application/x-shockwave-flash" |
|
601 | height="' . $height . '" |
|
602 | width="' . $width . '" |
|
603 | id="live_embed_player_flash" |
|
604 | data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '" |
|
605 | bgcolor="#000000"> |
|
606 | <param name="allowFullScreen" |
|
607 | value="true" /> |
|
608 | <param name="allowScriptAccess" |
|
609 | value="always" /> |
|
610 | <param name="allowNetworking" |
|
611 | value="all" /> |
|
612 | <param name="movie" |
|
613 | value="http://www.twitch.tv/widgets/live_embed_player.swf" /> |
|
614 | <param name="flashvars" |
|
615 | value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" /> |
|
616 | </object>'; |
|
617 | } |
|
618 | ||
619 | /** |
|
620 | * Get HTML code for video embedding |
|
@@ 629-648 (lines=20) @@ | ||
626 | * @return string |
|
627 | * @deprecated Will be replaced with Embed method |
|
628 | */ |
|
629 | public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25) |
|
630 | { |
|
631 | return '<object bgcolor="#000000" |
|
632 | data="http://www.twitch.tv/widgets/archive_embed_player.swf" |
|
633 | width="' . $width . '" |
|
634 | height="' . $height . '" |
|
635 | id="clip_embed_player_flash" |
|
636 | type="application/x-shockwave-flash"> |
|
637 | <param name="movie" |
|
638 | value="http://www.twitch.tv/widgets/archive_embed_player.swf" /> |
|
639 | <param name="allowScriptAccess" |
|
640 | value="always" /> |
|
641 | <param name="allowNetworking" |
|
642 | value="all" /> |
|
643 | <param name="allowFullScreen" |
|
644 | value="true" /> |
|
645 | <param name="flashvars" |
|
646 | value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" /> |
|
647 | </object>'; |
|
648 | } |
|
649 | ||
650 | /** |
|
651 | * Get HTML code for chat embedding |