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