The Popcorn constructor allows the user to create Popcorn instances. An optional options object can be passed along to set properties for the new instance of Popcorn. The constructor can also be used to listen for DOMContentLoaded, executing a callback function when your page has finished loading.
Popcorn( callback | id, optionsObject )
Purpose
Creates and returns a new Popcorn instance.
All Popcorn media methods, plugins and callbacks are chained directly from a Popcorn instance. The context will always be the instance itself.
Options
id - The id of the media element
callback - A function to execute when the DOM is ready.