<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="canonical" href="http://www.longtailvideo.com/support/jw-player/28851/javascript-api-reference/" />
<meta http-equiv="x-dns-prefetch-control" content="on" />
<link rel="dns-prefetch" href="//s0-www.ltvimg.com http" />
<link rel="shortcut icon" href="/sites/all/themes/community/favicon.ico" type="image/x-icon" />
<title>JavaScript API Reference | LongTail Video | Home of the JW Player</title>
<!-- CSS aggregated by CDN module. -->
<link type="text/css" rel="stylesheet" media="all" href="http://s0-www.ltvimg.com/cdn/farfuture/USMX4auFJXHRT1p_9DGqOlLqP93i2TG3gzsEcpASAm8/mtime:1354738979/sites/default/files/css/cdn_css_http_2ead03c5292503681fb8db058894cc6b_codefilter.css" />
<link type="text/css" rel="stylesheet" media="all" href="http://s1-www.ltvimg.com/cdn/farfuture/fm_1veMGYwiQzjMAOqsxxVStn1YCosF3n-ixYw_wHB4/mtime:1354738979/sites/default/files/css/cdn_css_2ead03c5292503681fb8db058894cc6b.css" />
<!-- CSS aggregated by CDN module. -->
<script type="text/javascript" src="http://s1-www.ltvimg.com/cdn/farfuture/B5OglVVuU2KZIsauY5tce9ZLJBXx5j6qPa5V1X8SQyM/mtime:1354738979/sites/default/files/js/js_8f6737d1d382932fdb0ffdc93ff68367.js"></script>
<script type="text/javascript" src="/jwplayer/jwplayer.js?1355496413"></script>
<script type="text/javascript" src="/jwplayer/key.js?1355496413"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--
jQuery.extend(Drupal.settings, { "basePath": "/", "googleanalytics": { "trackOutgoing": 1, "trackMailto": 1, "trackDownload": 1, "trackDownloadExtensions": "7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip" } });
//--><!]]>
</script>
<script type="text/javascript" src="http://www.longtailvideo.com/jw/embed/swfobject.js"></script>
</head>
<body>
<div id="Container" class="clearfix">
<div id="Top" class="header_top_strip">
<ul class="header_tab_nav">
<li class="logo"><a href="http://www.longtailvideo.com/">LongTail Video Home</a></li>
<li class="products"><a href="http://www.longtailvideo.com/">Products</a></li>
<li class="support"><a href="http://www.longtailvideo.com/support/">Support</a></li>
</ul>
<ul class="links_left">
<li class="simple_link forums"><a href="http://www.longtailvideo.com/support/forums/">Our Forums</a></li>
<li class="simple_link blog"><a href="http://www.longtailvideo.com/blog/">Our Blog</a></li>
</ul>
<ul class="links_right">
<li class="order"><a href="http://www.longtailvideo.com/order/" class="btn_order button orange">Order Now</a></li>
<li class="simple_link login"><a href="http://www.longtailvideo.com/sign-up" rel="nofollow">Sign Up</a> / <a href="http://www.longtailvideo.com/sign-in" rel="nofollow">Sign In</a></li>
</ul>
</div><!-- /.header_top_strip -->
<div class="nav_bar product_site_nav">
<a href="/" class="header_logo"><img src="/sites/all/themes/ltv/images/logo.png" alt="LongTail Video" title="LongTail Video" /></a>
<ul class="top_nav">
<li><a id="nav_item_jw" href="http://www.longtailvideo.com/jw-player/">JW Player</a></li>
<li><a id="nav_item_botr" href="http://www.longtailvideo.com/bits-on-the-run/">Video Platform</a></li>
<li><a id="nav_item_ads" href="http://www.longtailvideo.com/video-ads/">Video Ads</a></li>
</ul>
<form id="searchform" action="/jw/include/search_community.php" method="post">
<fieldset class="clearfix">
<input type="text" class="txtbox_search" id="searchCommunity" name="searchCommunity" value="Search Support & Forums" onfocus="if
(this.value==this.defaultValue) this.value='';" onblur="if
(this.value=='') this.value='Search Support & Forums';" />
<button type="submit" class="btn_search" value="Go">Go</button>
</fieldset>
</form>
</div><!-- /.product_site_nav -->
<div id="Header">
<a href="/support/" class="LogoHeader"><img src="/sites/all/themes/community/images/logo_header.png" height="41" width="140" border="0" alt="LongTail Video" title="LongTail Video" /></a>
<ul class="TertiaryLinks">
<li><a href="/support/forums/" class="Forums">Forums</a></li>
<li><a href="/support/jw-player-setup-wizard/" class="Wizard">Wizard</a></li>
<li><a href="/players/jw-flv-player/" class="Download">Download JW Player</a></li>
</ul>
<ul class="TopNav"> <li id="JWPlayer" class="Top Active hoverable"><a href="/support/jw-player" class="TopLevel">JW Player</a></li>
<li id="Forums" class="Top hoverable"><a href="/support/forums" class="TopLevel">Forums</a></li>
<li id="BitsontheRun" class="Top hoverable"><a href="/support/bits-on-the-run" class="TopLevel">Bits on the Run</a></li>
<li id="Blog" class="Top hoverable"><a href="/blog" class="TopLevel">Blog</a></li>
</ul>
</div>
<div class="SectionNavigation grid12 clearfix">
<p class="SectionProduct">JW Player</p>
<div class="SearchMain clearfix">
<form action="/support/jw-player/28851/javascript-api-reference" accept-charset="UTF-8" method="post" id="search-block-form">
<div>
<div class="form-item" id="edit-search-block-form-1-wrapper">
<label for="edit-search-block-form-1">Search this site: </label>
<input type="text" maxlength="128" name="search_block_form" id="edit-search-block-form-1" size="15" value="" title="Enter the terms you wish to search for." class="form-text" />
</div>
<input type="submit" name="op" id="edit-submit" value="Search" class="form-submit" />
<input type="hidden" name="form_build_id" id="form-187840928d00dbe0a49c945779e3d785" value="form-187840928d00dbe0a49c945779e3d785" />
<input type="hidden" name="form_id" id="edit-search-block-form" value="search_block_form" />
</div></form>
</div> </div>
<div class="grid12">
</div>
<div class="ColumnLeft">
<div class="Sidebar clearfix">
<!--If its not collapsible -> no class, just <li> -->
<ul id="jw6" class="sidenav">
<li>
<span>Documentation</span>
<ul>
<li><a href="/support/jw-player/28832/about-jw-player">About the JW Player</a></li>
<li><a href="/support/jw-player/28833/quick-start-guide">Quick Start Guide</a></li>
<li><a href="/support/jw-player/28834/migrating-from-jw5-to-jw6">Migrating from JW5 to JW6</a></li>
<li><a href="/support/jw-player/28835/release-notes" rel="nofollow">Release Notes</a></li>
<li class="closed">
<span>Media & Devices</span>
<ul>
<li><a href="/support/jw-player/28836/media-format-support">Media Format Support</a></li>
<li><a href="/support/jw-player/28837/browser-device-support">Browser Device Support</a></li>
<li><a href="/support/jw-player/28838/mp4-video-encoding">MP4 Video Encoding</a></li>
<li class="closed">
<span>Examples</span>
<ul>
<li><a href="/support/jw-player/29234/basic-mp4-video">Basic MP4 Video</a></li>
<li><a href="/support/jw-player/29235/basic-aac-audio">Basic AAC Audio</a></li>
<li><a href="/support/jw-player/29236/basic-youtube-stream">Basic YouTube Stream</a></li>
</ul>
</li>
</ul>
</li>
<li class="closed">
<span>Embedding</span>
<ul>
<li><a href="/support/jw-player/28839/embedding-the-player">Embedding the Player</a></li>
<li><a href="/support/jw-player/28840/troubleshooting-your-setup">Troubleshooting Your Setup</a></li>
<li><a href="/support/jw-player/28841/branding-your-player">Branding Your Player</a></li>
<li><a href="/support/jw-player/29912/wordpress-support">WordPress Support</a></li>