Ustream is a company that provides video streaming services to more than 80 million viewers and broadcasters. Founded in 2007, it's now one of the most frequented websites for live or streaming video. This post will show you how to render responsive uStream videos into your WordPress post or page with shortcode. There's a PHP function for use outside of WordPress.
[ustream v="40478440"] (just the video ID),
[ustream v="https://www.ustream.tv/recorded/40478440"] (the video ULR), or the actual embed URL of
[ustream v="https://www.ustream.tv/embed/recorded/40478440"], all render the following into your WordPress website.
vis virtually any URL that references a particular video. It's best to use just the video ID since we strip all other characters from the URL string (regardless of how it's formatted) before rebuilding it.
widthin the shortcode function should be adjusted so that the video container fits nicely into the content area of your own website.
heightwill automatically be scaled based on the width. The option to define the height for each video remains.
colorof the player controls can be set to red, green, pink, orange, or left blank (which renders the default uStream blue). These colors match up with the options available if you were to directly copy the messy embed code. Use like
ustream v="40478440" color="red".
Copy and paste the WordPress function into your theme's
functions.php file or, if you sensibly have one installed, your custom functions plugin. You may optionally download and install our plugin from the bottom of of the page.