MyBB Community Forums

Full Version: Simple livestream embed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Tell me if there's any changes that should be made.

I really would like to figure out how to check to see if the livestream is active or not and show different messages.

Requires you to type [livestream](last part of the url here)[/livestream]

Regular expression:

\[livestream\](.*?)\[/livestream\]

Replacement:

<object width="560" height="340" id="lsplayer" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"><param name="movie" value="http://cdn.livestream.com/grid/LSPlayer.swf?channel=$1l&amp;autoPlay=false"></param><param name="allowScriptAccess" value="always"></param><param name="allowFullScreen" value="true"></param><embed name="lsplayer" wmode="transparent" src="http://cdn.livestream.com/grid/LSPlayer.swf?channel=$1&amp;autoPlay=false" width="560" height="340" allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash"></embed></object><div style="font-size: 11px;padding-top:10px;text-align:center;width:560px">Watch <a href="http://www.livestream.com/?utm_source=lsplayer&utm_medium=embed&utm_campaign=footerlinks" title="live streaming video">live streaming video</a> from <a href="http://www.livestream.com/$1?utm_source=lsplayer&utm_medium=embed&utm_campaign=footerlinks" title="none">$1</a> at livestream.com</div>