# videojs-playlist-ui [![Build Status](https://travis-ci.org/brightcove/videojs-playlist-ui.svg?branch=master)](https://travis-ci.org/brightcove/videojs-playlist-ui) [![Greenkeeper badge](https://badges.greenkeeper.io/brightcove/videojs-playlist-ui.svg)](https://greenkeeper.io/) [![Slack Status](http://slack.videojs.com/badge.svg)](http://slack.videojs.com) [![NPM](https://nodei.co/npm/videojs-playlist-ui.png?downloads=true&downloadRank=true)](https://nodei.co/npm/videojs-playlist-ui/) A playlist video picker for video.js and videojs-playlist Maintenance Status: Stable - [Getting Started](#getting-started) - [Root Element](#root-element) - [Using Automatic Discovery (default, example)](#using-automatic-discovery-default-example) - [Using a Custom Class (example)](#using-a-custom-class-example) - [Using a Custom Element (example)](#using-a-custom-element-example) - [Other Options](#other-options) - [`className`](#classname) - [playOnSelect](#playonselect) - [Playlists and Advertisements](#playlists-and-advertisements) ## Getting Started Include the plugin script in your page, and a placeholder list element with the class `vjs-playlist` to house the playlist menu: ```html
``` There's also a [working example](example.html) of the plugin you can check out if you're having trouble. ## Root Element Before this plugin will work at all, it needs an element in the DOM to which to attach itself. There are three ways to find or provide this element. > **NOTE:** In v2.x of this plugin, the root element was expected to be a list element (i.e., `
    ` or `