The JW Player Plugin for Wordpress comes with a powerful and flexible shortcode system that allows you to leverage all of the features of the JW Player. While not as easy to use as the included graphical interface, it can handle any JW Player use case. This document will outline situations where the shortcode can solve any problems you might have configuring the player through the graphical interface.
Streaming is a powerful feature of the JW Player and requires use of the shortcode for proper configuration. The most common examples of streaming and their associated shortcodes are displayed below. For more information about streaming with the JW Player please refer to Video Delivery: RTMP Streaming.
[jwplayer type="highwinds" file="http://hwcdn.net/xxxxx/fls/xxxxxxx.smil"]
[jwplayer streamer="http://www.mydomain.com/path/to/application.php" file="path/to/video.flv" type="http"]
[jwplayer file="path/to/video.flv" streamer="rtmp://s7357.cloudfront.net/cfx/st" provider="rtmp"]
[jwplayer file="path/to/video.flv" streamer="rtmp://s7357.cloudfront.net/cfx/st" provider="rtmp" image="http://www.mywebsite.com/myimage.jpg" html5_file="http://www.mywebsite.com/myvideo.mp4"]
The JW Player also provides HTML5 support which allows for video playback without the use of Adobe Flash. This expands your audience to numerous mobile devices. Support is seamless and the JW Player will switch modes depending on the capabilities of the device it's running on. You can easily take advantage of this using the shortcode provided by the JW Player Plugin for WordPress.
[jwplayer config="myplayer" file="http://www.mywebsite.com/myvideo.flv" image="http://www.mywebsite.com/myimage.jpg" html5_file="http://www.mywebsite.com/myvideo.mp4" download_file="http://www.mywebsite.com/myvideo.mp4"]
The JW Player provides a variety of events that allow JavaScript developers to better integrate the player with the functionality of their site. The JW Player plugin for WordPress supports inline functions right in the shortcode.
[jwplayer config="myplayer" file="http://www.mywebsite.com/myvideo.flv" image="http://www.mywebsite.com/myimage.jpg" playerReady="function() {alert('Player is Ready');}"]