Twitch.tv embeding

Hi i have this code here

<?php $channel = "CHANNEL NAME HERE"; ?>

<object type="application/x-shockwave-flash" height="1053" width="1288" id="live_embed_player_flash" 
data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=
<?php 
echo $channel 
?>
" bgcolor="#000000"><param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />
<param name="flashvars" value="hostname=www.twitch.tv&channel=

<?php 
echo $channel 
?>

&auto_play=true&start_volume=50" /></object><a href="http://www.twitch.tv/

<?php 
echo $channel 
?>

" class="trk" style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal; font-size:10px; 
text-decoration:underline; text-align:center;">

The code works fine as it is on XAMP but i have a problem with my provider. It is a free provider that does not use php. It is webs.com
I am basically wondering if anyone could help me make this work in javascript or something else.

also i would like to be able to change the variable from an input text field so i can change channels when i want to.

If you don’t know a solution to this do you happen to know a free web provider that will support php

Thanks

Stepheng11

I assume you can just remove the PHP?

<object type="application/x-shockwave-flash" height="1053" width="1288" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=CHANNEL NAME HERE" bgcolor="#000000"><param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="always" />
<param name="allowNetworking" value="all" />
<param name="movie" value="http://www.twitch.tv/widgets/live_embed_player.swf" />
<param name="flashvars" value="hostname=www.twitch.tv&channel=CHANNEL NAME HERE&auto_play=true&start_volume=50" /></object><a href="http://www.twitch.tv/CHANNEL NAME HERE" class="trk" style="padding:2px 0px 4px; display:block; width:345px; font-weight:normal; font-size:10px; text-decoration:underline; text-align:center;">

ye the php can be removed but i would have to manually change the channel name on the website every time.
i am making this website so multiple streams can be seen on one page so you would have to change the name for each embed.

i need a way to change the name from an input. the best way i have found atm is through the php but i should be able to do it with java or something

Sponsor our Newsletter | Privacy Policy | Terms of Service