|
@@ 417-436 (lines=20) @@
|
| 414 |
|
* @param int $volume |
| 415 |
|
* @return string |
| 416 |
|
*/ |
| 417 |
|
public function embedStream($channel, $width = 620, $height = 378, $volume = 25) |
| 418 |
|
{ |
| 419 |
|
return '<object type="application/x-shockwave-flash" |
| 420 |
|
height="' . $height . '" |
| 421 |
|
width="' . $width . '" |
| 422 |
|
id="live_embed_player_flash" |
| 423 |
|
data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=' . $channel . '" |
| 424 |
|
bgcolor="#000000"> |
| 425 |
|
<param name="allowFullScreen" |
| 426 |
|
value="true" /> |
| 427 |
|
<param name="allowScriptAccess" |
| 428 |
|
value="always" /> |
| 429 |
|
<param name="allowNetworking" |
| 430 |
|
value="all" /> |
| 431 |
|
<param name="movie" |
| 432 |
|
value="http://www.twitch.tv/widgets/live_embed_player.swf" /> |
| 433 |
|
<param name="flashvars" |
| 434 |
|
value="hostname=www.twitch.tv&channel=' . $channel . '&auto_play=true&start_volume=' . $volume . '" /> |
| 435 |
|
</object>'; |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
/** |
| 439 |
|
* Get HTML code for video embedding |
|
@@ 447-466 (lines=20) @@
|
| 444 |
|
* @param int $volume |
| 445 |
|
* @return string |
| 446 |
|
*/ |
| 447 |
|
public function embedVideo($channel, $chapterid, $width = 400, $height = 300, $volume = 25) |
| 448 |
|
{ |
| 449 |
|
return '<object bgcolor="#000000" |
| 450 |
|
data="http://www.twitch.tv/widgets/archive_embed_player.swf" |
| 451 |
|
width="' . $width . '" |
| 452 |
|
height="' . $height . '" |
| 453 |
|
id="clip_embed_player_flash" |
| 454 |
|
type="application/x-shockwave-flash"> |
| 455 |
|
<param name="movie" |
| 456 |
|
value="http://www.twitch.tv/widgets/archive_embed_player.swf" /> |
| 457 |
|
<param name="allowScriptAccess" |
| 458 |
|
value="always" /> |
| 459 |
|
<param name="allowNetworking" |
| 460 |
|
value="all" /> |
| 461 |
|
<param name="allowFullScreen" |
| 462 |
|
value="true" /> |
| 463 |
|
<param name="flashvars" |
| 464 |
|
value="channel=' . $channel . '&start_volume=' . $volume . '&auto_play=false&chapter_id=' . $chapterid . '" /> |
| 465 |
|
</object>'; |
| 466 |
|
} |
| 467 |
|
|
| 468 |
|
/** |
| 469 |
|
* Get HTML code for chat embedding |