---
title: "2.0.0 Release - Behaviors, fallback APIs, and more."
description: Video.js 2.0.0 introduces a groundbreaking "behaviors" system for creating custom controls, unified APIs for HTML5 and Flash fallback players, configurable fallback order, and switches from list-based to div-based controls for better style portability.
canonical: https://videojs.org/blog/2-0-0-release-behaviors-fallback-apis-and-more
tags:
  - version
authors: [steve-heffernan]
---


Big update. The biggest change for current users is a move back to using DIVs for control bar elements instead of unordered lists. There were a lot of conflicting styles issues when using lists, which shouldn&rsquo;t be an issue with divs. So if you upgrade, don&rsquo;t forget to upgrade your stylesheets as well.

Beyond that, a lot of code was reorganized and modularized to create a platform for further expansion, like custom plugins and controls. The concept of &ldquo;behaviors&rdquo; was added, so you can activate any element on the page to act like a video controls. For instance, the following code snippet will make the specified element act like a play button, and play the video when clicked.

```javascript
myplayer.activateElement(myElement, "playButton");
```

The next code snippet will make the element act like a play progress bar, meaning it will grow horizontally as the video plays.

```javascript
myplayer.activateElement(myElement, "playProgressBar");
```

More documentation on this is coming.

The code is now prepped for APIs to the fallback flash players. So if you call myPlayer.play(), it will trigger a play in both the HTML5 and the Flash version, whichever is currently being used. A flowplayer API is just about done, and other popular Flash players will follow.

Finally, you can change the fallback order by modifying the playerFallbackOrder option, which is an array of player platforms. So if you want Flash to be dominant, you would pass the following option.

```javascript
VideoJS.setupAllWhenReady({
  playerFallbackOrder: ["flash", "html5", "links"]
});
```

This also leaves room for other platforms to be added, like Quicktime.

So coming up is Flash player APIs, and another cool feature I don&rsquo;t want to mention just yet.

Full list:

*   Feature: Created &ldquo;behaviors&rdquo; concept for adding behaviors to elements - Feature: Switched back to divs for controls, for more portable styles
*   Feature: Created playerFallbackOrder array option. [&ldquo;html5&rdquo;, &ldquo;flash&rdquo;, &ldquo;links&rdquo;]
*   Feature: Created playerType concept, for initializing different platforms
*   Feature: Added play button for Android
*   Feature: Added spinner for iPad (non-fullscreen)
*   Feature: Split into multiple files for easier development
*   Feature: Combined VideoJS &amp; _V_ into the same variable to reduce confusion
*   Fix: Checking for m3u8 files (Apple HTTP Streaming)
*   Fix: Catching error on localStorage full that safari seems to randomly throw
*   Fix: Scrubbing to end doesn&rsquo;t trigger onEnded

[Download version 2.0.0](http://videojs.com/#download)
