Twitch MyCode.
#1
Toungue 
Embeds a Twitch Live stream on your site with a MyCode.
Just put your channel name between the opening and closing MyCode Tags:

Title:
Twitch Video

Short Description:
Embed a Twitch Live Stream

Regular Expression:
\[twitch\](.*?)\[/twitch\]

Replacement:
<object type="application/x-shockwave-flash" height=600" width="800" id="live_embed_player_flash" data="http://www.twitch.tv/widgets/live_embed_player.swf?channel=$1" 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=$1&auto_play=true&start_volume=25" /></object><a href="http://www.twitch.tv/$1" class="trk" style="padding:2px 0px 4px; display:block; width:800px; font-weight:normal; font-size:10px; text-decoration:underline; text-align:center;">Watch live video from $1 on www.twitch.tv</a>

Enabled? Yes

This MyCode will autoplay.. tinker with the embed code to make it play on user request..

Save and use. Enjoy Smile

Edit:
to help anyone else out.. change &auto_play=true to &auto_play=false to disable autoplay
to adjust initial volume change &start_volume=25 to any number between 0 and 100. 100 being full volume.
Reply
#2
Thank you Smile
Reply
#3
My pleasure! Let me know if you need a MyCode for anything that already has embed code avail.

Edit:
Please leave me some rep if it helped... my goal is to catch up in rep with Yaldaram! LOL ;P
Reply
#4
question, taking this to the next step, anyone have any ideas on how to make this responsive??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)