Home Blog Embed uStream Video With PHP or WordPress Shortcode

Embed uStream Video With PHP or WordPress Shortcode


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.

The Result

Shortcode of [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.

Shortcode Attributes


As stated, v is 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.


The width in the shortcode function should be adjusted so that the video container fits nicely into the content area of your own website.


The height will automatically be scaled based on the width. The option to define the height for each video remains.


The color of 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”.

Embed uStream Video With PHP or WordPress Shortcode

Copying embed code with color options. The long way...

WordPress Shortcode

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.

If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.


Title: Embed uStream Video With PHP or WordPress Shortcode
Description: Embed responsive uStream videos in WordPress with shortcode.
Download: Shortcode (V0.2) | WP Plugin (V0.2) | | Plugin Page

Shortt URL for this post: http://shor.tt/1XO4


Please enter your comment!
Please enter your name here