@@ 574-593 (lines=20) @@ | ||
571 | * @return string |
|
572 | * @deprecated Will be replaced with Embed method |
|
573 | */ |
|
574 | public function embedStream($channel, $width = 620, $height = 378, $volume = 25) |
|
575 | { |
|
576 | return '<object type="application/x-shockwave-flash" |
|
577 | height="' . $height . '" |
|
578 | width="' . $width . '" |
|
579 | id="live_embed_player_flash" |
|
580 | data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '" |
|
581 | bgcolor="#000000"> |
|
582 | <param name="allowFullScreen" |
|
583 | value="true" /> |
|
584 | <param name="allowScriptAccess" |
|
585 | value="always" /> |
|
586 | <param name="allowNetworking" |
|
587 | value="all" /> |
|
588 | <param name="movie" |
|
589 | value="http://www.twitch.tv/widgets/live_embed_player.swf" /> |
|
590 | <param name="flashvars" |
|
591 | value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" /> |
|
592 | </object>'; |
|
593 | } |
|
594 | ||
595 | /** |
|
596 | * Get HTML code for video embedding |
|
@@ 605-624 (lines=20) @@ | ||
602 | * @return string |
|
603 | * @deprecated Will be replaced with Embed method |
|
604 | */ |
|
605 | public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25) |
|
606 | { |
|
607 | return '<object bgcolor="#000000" |
|
608 | data="http://www.twitch.tv/widgets/archive_embed_player.swf" |
|
609 | width="' . $width . '" |
|
610 | height="' . $height . '" |
|
611 | id="clip_embed_player_flash" |
|
612 | type="application/x-shockwave-flash"> |
|
613 | <param name="movie" |
|
614 | value="http://www.twitch.tv/widgets/archive_embed_player.swf" /> |
|
615 | <param name="allowScriptAccess" |
|
616 | value="always" /> |
|
617 | <param name="allowNetworking" |
|
618 | value="all" /> |
|
619 | <param name="allowFullScreen" |
|
620 | value="true" /> |
|
621 | <param name="flashvars" |
|
622 | value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" /> |
|
623 | </object>'; |
|
624 | } |
|
625 | ||
626 | /** |
|
627 | * Get HTML code for chat embedding |